fix for new error signaling

Original commit message from CVS:
fix for new error signaling
This commit is contained in:
Thomas Vander Stichele 2004-01-20 12:40:44 +00:00
parent 2924c6ccd7
commit 7819b2bc67
2 changed files with 11 additions and 6 deletions

View file

@ -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),

View file

@ -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;
}