ext/ffmpeg/gstffmpegdemux.c: Post nice error message when we cannot activate in pull mode.

Original commit message from CVS:
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_sink_activate):
Post nice error message when we cannot activate in pull mode.
This commit is contained in:
Wim Taymans 2006-02-17 18:54:17 +00:00
parent 4aa57ea7e5
commit f675ce7cfd
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-02-17 Wim Taymans <wim@fluendo.com>
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_sink_activate):
Post nice error message when we cannot activate in pull mode.
2006-02-14 Edward Hervey <edward@fluendo.com>
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_open):

View file

@ -978,9 +978,13 @@ gst_ffmpegdemux_loop (GstPad * pad)
static gboolean
gst_ffmpegdemux_sink_activate (GstPad * sinkpad)
{
GstFFMpegDemux *demux = (GstFFMpegDemux*) (GST_PAD_PARENT (sinkpad));
if (gst_pad_check_pull_range (sinkpad))
return gst_pad_activate_pull (sinkpad, TRUE);
GST_ELEMENT_ERROR (demux, STREAM, NOT_IMPLEMENTED,
(NULL), ("failed to activate sinkpad in pull mode, push mode not implemented yet"));
return FALSE;
}