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 011c11fe6a70e43010be4436eb693d52262eee98..539d8d326bc415d06384f57b2696c0fc24255431 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: