summaryrefslogtreecommitdiffstats
path: root/ext/divx
diff options
context:
space:
mode:
Diffstat (limited to 'ext/divx')
-rw-r--r--ext/divx/gstdivxdec.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/ext/divx/gstdivxdec.c b/ext/divx/gstdivxdec.c
index 44134ecd..06b3dc33 100644
--- a/ext/divx/gstdivxdec.c
+++ b/ext/divx/gstdivxdec.c
@@ -215,9 +215,8 @@ gst_divxdec_setup (GstDivxDec *divxdec)
xinit.smooth_playback = 0;
xinit.codec_version = 500;
if ((ret = decore(&handle, DEC_OPT_INIT, &xinit, NULL)) != 0) {
- gst_element_error(GST_ELEMENT(divxdec),
- "Error initializing divx decoding library: %s (%d)",
- gst_divxdec_error(ret), ret);
+ gst_element_error (divxdec, LIBRARY, INIT, NULL,
+ ("divx library error: %s (%d)", gst_divxdec_error (ret), ret));
return FALSE;
}
@@ -234,9 +233,8 @@ gst_divxdec_setup (GstDivxDec *divxdec)
if ((ret = decore(divxdec->handle, DEC_OPT_SETOUT,
&output, NULL)) != 0) {
- gst_element_error(GST_ELEMENT(divxdec),
- "Error setting output format: %s (%d)",
- gst_divxdec_error(ret), ret);
+ gst_element_error (divxdec, LIBRARY, SETTINGS, NULL,
+ ("error setting output: %s (%d)", gst_divxdec_error (ret)), ret);
gst_divxdec_unset(divxdec);
return FALSE;
}
@@ -272,8 +270,8 @@ gst_divxdec_chain (GstPad *pad,
if (!divxdec->handle) {
if (gst_divxdec_negotiate(divxdec) <= 0) {
- gst_element_error(GST_ELEMENT(divxdec),
- "No format set - aborting");
+ gst_element_error (divxdec, CORE, TOO_LAZY,
+ ("No format set - aborting"));
gst_buffer_unref(buf);
return;
}
@@ -296,9 +294,9 @@ gst_divxdec_chain (GstPad *pad,
if ((ret = decore(divxdec->handle, DEC_OPT_FRAME,
&xframe, NULL))) {
- gst_element_error(GST_ELEMENT(divxdec),
- "Error decoding divx frame: %s (%d)",
- gst_divxdec_error(ret), ret);
+ gst_element_error (divxdec, STREAM, DECODE, NULL,
+ ("Error decoding divx frame: %s (%d)",
+ gst_divxdec_error(ret), ret));
gst_buffer_unref(buf);
return;
}