diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-01-18 21:46:52 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-01-18 21:46:52 +0000 |
commit | 3f9cd6434f6b0eb10ef4e33ed3d2c9d770dd5f19 (patch) | |
tree | 0e8c742e8bb6d331e0734153cd8ca9cbfa14497e | |
parent | df75119488ba1b45638a47016c76f99ea157a526 (diff) | |
download | gst-libav-3f9cd6434f6b0eb10ef4e33ed3d2c9d770dd5f19.tar.gz |
use new error signal and classification
Original commit message from CVS:
use new error signal and classification
-rw-r--r-- | ext/ffmpeg/gstffmpegdec.c | 12 | ||||
-rw-r--r-- | ext/ffmpeg/gstffmpegdemux.c | 4 | ||||
-rw-r--r-- | ext/ffmpeg/gstffmpegmux.c | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c index d50ca63..58c5548 100644 --- a/ext/ffmpeg/gstffmpegdec.c +++ b/ext/ffmpeg/gstffmpegdec.c @@ -324,9 +324,9 @@ gst_ffmpegdec_chain (GstPad *pad, gint have_data; if (!ffmpegdec->opened) { - gst_element_error (GST_ELEMENT (ffmpegdec), - "ffdec_%s: input format was not set before data-start", - oclass->in_plugin->name); + gst_element_error (ffmpegdec, CORE, NEGOTIATION, NULL, + ("ffdec_%s: input format was not set before data start", + oclass->in_plugin->name)); return; } @@ -414,9 +414,9 @@ gst_ffmpegdec_chain (GstPad *pad, ffmpegdec->context); if (caps == NULL || !gst_pad_set_explicit_caps (ffmpegdec->srcpad, caps)) { - gst_element_error (GST_ELEMENT (ffmpegdec), - "Failed to link ffmpeg decoder (%s) to next element", - oclass->in_plugin->name); + gst_element_error (ffmpegdec, CORE, NEGOTIATION, NULL, + ("Failed to link ffmpeg decoder (%s) to next element", + oclass->in_plugin->name)); return; } } diff --git a/ext/ffmpeg/gstffmpegdemux.c b/ext/ffmpeg/gstffmpegdemux.c index b6133f5..47915d3 100644 --- a/ext/ffmpeg/gstffmpegdemux.c +++ b/ext/ffmpeg/gstffmpegdemux.c @@ -241,8 +241,8 @@ gst_ffmpegdemux_loop (GstElement *element) ffmpegdemux->sinkpad), oclass->in_plugin, 0, NULL); if (res < 0) { - gst_element_error (GST_ELEMENT (ffmpegdemux), - "Failed to open demuxer/file context"); + gst_element_error (ffmpegdemux, LIBRARY, TOO_LAZY, NULL, + ("Failed to open demuxer/file context")); return; } diff --git a/ext/ffmpeg/gstffmpegmux.c b/ext/ffmpeg/gstffmpegmux.c index 7e36c4f..9a0b1db 100644 --- a/ext/ffmpeg/gstffmpegmux.c +++ b/ext/ffmpeg/gstffmpegmux.c @@ -330,8 +330,8 @@ gst_ffmpegmux_loop (GstElement *element) if (url_fopen (&ffmpegmux->context->pb, ffmpegmux->context->filename, URL_WRONLY) < 0) { - gst_element_error (element, - "Failed to open stream context in ffmux"); + gst_element_error (element, LIBRARY, TOO_LAZY, NULL, + ("Failed to open stream context in ffmux")); return; } |