ext/ffmpeg/gstffmpegdemux.c: Post nice error message when we cannot activate in pull...
authorWim Taymans <wim.taymans@gmail.com>
Fri, 17 Feb 2006 18:54:17 +0000 (18:54 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Fri, 17 Feb 2006 18:54:17 +0000 (18:54 +0000)
Original commit message from CVS:
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_sink_activate):
Post nice error message when we cannot activate in pull mode.

ChangeLog
ext/ffmpeg/gstffmpegdemux.c

index 831a7c5..665078e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
index b38b4a6..5e208ee 100644 (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;
 }