rmdemux: Mark demuxer as "running" in push-mode
authorEdward Hervey <edward@collabora.com>
Thu, 18 Jul 2013 15:14:29 +0000 (17:14 +0200)
committerEdward Hervey <edward@collabora.com>
Thu, 18 Jul 2013 15:15:25 +0000 (17:15 +0200)
Allows queries (and other code) to be answered when working in push-mode.

Running would only be set to TRUE accordingly when working in pull-mode
once it had read header/index.

Fixes #680185

gst/realmedia/rmdemux.c

index 011c11f..539d8d3 100644 (file)
@@ -782,6 +782,7 @@ gst_rmdemux_sink_activate_mode (GstPad * sinkpad, GstObject * parent,
   switch (mode) {
     case GST_PAD_MODE_PUSH:
       demux->seekable = FALSE;
+      demux->running = active;
       res = TRUE;
       break;
     case GST_PAD_MODE_PULL: