diff options
author | Julien Moutte <julien@fluendo.com> | 2009-02-12 22:40:48 +0100 |
---|---|---|
committer | Julien Moutte <julien@fluendo.com> | 2009-02-12 22:40:48 +0100 |
commit | 8ad4f28d67ce0bb9494b89105f8b1468c482b01c (patch) | |
tree | 1f8e2bcd1799515269ffb763bddadd5e58183292 | |
parent | e8efc4d020a821b8ab86aa3813d9422c03b4ecc0 (diff) | |
download | gst-plugins-bad-8ad4f28d67ce0bb9494b89105f8b1468c482b01c.tar.gz gst-plugins-bad-8ad4f28d67ce0bb9494b89105f8b1468c482b01c.tar.bz2 gst-plugins-bad-8ad4f28d67ce0bb9494b89105f8b1468c482b01c.zip |
Make the demuxer reusable in READY->PLAYING->READY->PLAYING cycles by
flushing adapters correctly.
-rw-r--r-- | gst/mpegdemux/gstmpegdemux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/mpegdemux/gstmpegdemux.c b/gst/mpegdemux/gstmpegdemux.c index 64a4535b..87c251e4 100644 --- a/gst/mpegdemux/gstmpegdemux.c +++ b/gst/mpegdemux/gstmpegdemux.c @@ -2728,6 +2728,7 @@ gst_flups_demux_change_state (GstElement * element, GstStateChange transition) gst_flups_demux_reset_psm (demux); gst_segment_init (&demux->sink_segment, GST_FORMAT_UNDEFINED); gst_segment_init (&demux->src_segment, GST_FORMAT_TIME); + gst_flups_demux_flush (demux); break; default: break; |