diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-01-18 21:46:58 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-01-18 21:46:58 +0000 |
commit | 07ed811a0983771c45faa2f6f76a9fff186db407 (patch) | |
tree | 1c0250da756e8b2dce0b660515d72ab1352a11d3 /ext/divx | |
parent | b1e81d454192223e58f3225aa44785e940a90fd7 (diff) | |
download | gst-plugins-bad-07ed811a0983771c45faa2f6f76a9fff186db407.tar.gz gst-plugins-bad-07ed811a0983771c45faa2f6f76a9fff186db407.tar.bz2 gst-plugins-bad-07ed811a0983771c45faa2f6f76a9fff186db407.zip |
use new error signal and classification
Original commit message from CVS:
use new error signal and classification
Diffstat (limited to 'ext/divx')
-rw-r--r-- | ext/divx/gstdivxdec.c | 20 |
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; } |