Commit 9e6362dd authored by Thomas Vander Stichele's avatar Thomas Vander Stichele
Browse files

change NULL to (NULL) for GST_ELEMENT_ERROR

Original commit message from CVS:
change NULL to (NULL) for GST_ELEMENT_ERROR
Make sure errors end with "."
parent 2b07da86
common @ 508678c1
Subproject commit 5da247bb6f217c5c32e5ebab0d3a2014dfa452c3 Subproject commit 508678c12ea745e207eb8bb3be12c156e3bb698c
...@@ -324,7 +324,7 @@ gst_ffmpegdec_chain (GstPad *pad, ...@@ -324,7 +324,7 @@ gst_ffmpegdec_chain (GstPad *pad,
gint have_data; gint have_data;
if (!ffmpegdec->opened) { if (!ffmpegdec->opened) {
GST_ELEMENT_ERROR (ffmpegdec, CORE, NEGOTIATION, NULL, 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,7 +414,7 @@ gst_ffmpegdec_chain (GstPad *pad, ...@@ -414,7 +414,7 @@ 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 (ffmpegdec, CORE, NEGOTIATION, NULL, 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,7 +241,7 @@ gst_ffmpegdemux_loop (GstElement *element) ...@@ -241,7 +241,7 @@ 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 (ffmpegdemux, LIBRARY, TOO_LAZY, NULL, GST_ELEMENT_ERROR (ffmpegdemux, LIBRARY, TOO_LAZY, (NULL),
("Failed to open demuxer/file context")); ("Failed to open demuxer/file context"));
return; return;
} }
......
...@@ -330,7 +330,7 @@ gst_ffmpegmux_loop (GstElement *element) ...@@ -330,7 +330,7 @@ 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, LIBRARY, TOO_LAZY, NULL, GST_ELEMENT_ERROR (element, LIBRARY, TOO_LAZY, (NULL),
("Failed to open stream context in ffmux")); ("Failed to open stream context in ffmux"));
return; return;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment