summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-01-20 12:40:44 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-01-20 12:40:44 +0000
commit7819b2bc670d7f08823d264cfe6e6ee1adb47f66 (patch)
treee481f5853b9582647e1f34b0a34f42ae98d133ba
parent2924c6ccd71901854062296654c1869f09abc97c (diff)
downloadgst-plugins-bad-7819b2bc670d7f08823d264cfe6e6ee1adb47f66.tar.gz
gst-plugins-bad-7819b2bc670d7f08823d264cfe6e6ee1adb47f66.tar.bz2
gst-plugins-bad-7819b2bc670d7f08823d264cfe6e6ee1adb47f66.zip
fix for new error signaling
Original commit message from CVS: fix for new error signaling
-rw-r--r--ChangeLog5
-rw-r--r--ext/divx/gstdivxenc.c12
2 files changed, 11 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 915d96e7..7356fb3f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-20 Thomas Vander Stichele <thomas at apestaart dot org>
+
+ * ext/divx/gstdivxenc.c: (gst_divxenc_setup), (gst_divxenc_chain):
+ fix for new error reporting
+
2004-01-20 David Schleef <ds@schleef.org>
* sys/ximage/ximagesink.c: (gst_ximagesink_handle_xevents),
diff --git a/ext/divx/gstdivxenc.c b/ext/divx/gstdivxenc.c
index afd1860b..64ba60a9 100644
--- a/ext/divx/gstdivxenc.c
+++ b/ext/divx/gstdivxenc.c
@@ -295,9 +295,9 @@ gst_divxenc_setup (GstDivxEnc *divxenc)
output.temporal_level = 1.0;
if ((ret = encore(&handle, ENC_OPT_INIT, &input, &output))) {
- gst_element_error(GST_ELEMENT(divxenc),
- "Error setting up divx encoder: %s (%d)",
- gst_divxenc_error(ret), ret);
+ gst_element_error (divxenc, LIBRARY, INIT, NULL,
+ ("Error setting up divx encoder: %s (%d)",
+ gst_divxenc_error(ret), ret));
return FALSE;
}
@@ -357,9 +357,9 @@ gst_divxenc_chain (GstPad *pad,
if ((ret = encore(divxenc->handle, ENC_OPT_ENCODE,
&xframe, &xres))) {
- gst_element_error(GST_ELEMENT(divxenc),
- "Error encoding divx frame: %s (%d)",
- gst_divxenc_error(ret), ret);
+ gst_element_error (divxenc, LIBRARY, ENCODE, NULL,
+ ("Error encoding divx frame: %s (%d)",
+ gst_divxenc_error(ret), ret));
gst_buffer_unref(buf);
return;
}