mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
use new error signal and classification
Original commit message from CVS: use new error signal and classification
This commit is contained in:
parent
df75119488
commit
3f9cd6434f
3 changed files with 10 additions and 10 deletions
|
@ -324,9 +324,9 @@ gst_ffmpegdec_chain (GstPad *pad,
|
||||||
gint have_data;
|
gint have_data;
|
||||||
|
|
||||||
if (!ffmpegdec->opened) {
|
if (!ffmpegdec->opened) {
|
||||||
gst_element_error (GST_ELEMENT (ffmpegdec),
|
gst_element_error (ffmpegdec, CORE, NEGOTIATION, NULL,
|
||||||
"ffdec_%s: input format was not set before data-start",
|
("ffdec_%s: input format was not set before data start",
|
||||||
oclass->in_plugin->name);
|
oclass->in_plugin->name));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -414,9 +414,9 @@ gst_ffmpegdec_chain (GstPad *pad,
|
||||||
ffmpegdec->context);
|
ffmpegdec->context);
|
||||||
if (caps == NULL ||
|
if (caps == NULL ||
|
||||||
!gst_pad_set_explicit_caps (ffmpegdec->srcpad, caps)) {
|
!gst_pad_set_explicit_caps (ffmpegdec->srcpad, caps)) {
|
||||||
gst_element_error (GST_ELEMENT (ffmpegdec),
|
gst_element_error (ffmpegdec, CORE, NEGOTIATION, NULL,
|
||||||
"Failed to link ffmpeg decoder (%s) to next element",
|
("Failed to link ffmpeg decoder (%s) to next element",
|
||||||
oclass->in_plugin->name);
|
oclass->in_plugin->name));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -241,8 +241,8 @@ gst_ffmpegdemux_loop (GstElement *element)
|
||||||
ffmpegdemux->sinkpad),
|
ffmpegdemux->sinkpad),
|
||||||
oclass->in_plugin, 0, NULL);
|
oclass->in_plugin, 0, NULL);
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
gst_element_error (GST_ELEMENT (ffmpegdemux),
|
gst_element_error (ffmpegdemux, LIBRARY, TOO_LAZY, NULL,
|
||||||
"Failed to open demuxer/file context");
|
("Failed to open demuxer/file context"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -330,8 +330,8 @@ gst_ffmpegmux_loop (GstElement *element)
|
||||||
if (url_fopen (&ffmpegmux->context->pb,
|
if (url_fopen (&ffmpegmux->context->pb,
|
||||||
ffmpegmux->context->filename,
|
ffmpegmux->context->filename,
|
||||||
URL_WRONLY) < 0) {
|
URL_WRONLY) < 0) {
|
||||||
gst_element_error (element,
|
gst_element_error (element, LIBRARY, TOO_LAZY, NULL,
|
||||||
"Failed to open stream context in ffmux");
|
("Failed to open stream context in ffmux"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue