summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-10-18 22:22:12 +0200
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-10-19 16:17:45 +0200
commita2b6f46f006a9a7357e81287da25ffd13464555c (patch)
tree6e6716f544e16375acb3fe9cd800a30f83786fc9 /gst
parent888fe99fa40ceff12c47b97df2d5df9c8e8ab0c4 (diff)
downloadgstreamer-plugins-bad-a2b6f46f006a9a7357e81287da25ffd13464555c.tar.gz
mpegdemux: segment event should be sent before gap event
Diffstat (limited to 'gst')
-rw-r--r--gst/mpegdemux/gstmpegdemux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/mpegdemux/gstmpegdemux.c b/gst/mpegdemux/gstmpegdemux.c
index 8d8a5860f..1882e3d98 100644
--- a/gst/mpegdemux/gstmpegdemux.c
+++ b/gst/mpegdemux/gstmpegdemux.c
@@ -868,6 +868,9 @@ gst_flups_demux_send_gap_updates (GstFluPSDemux * demux, GstClockTime new_start)
stream->last_ts = demux->src_segment.start + base_time;
if (stream->last_ts + stream->segment_thresh < new_start) {
+ /* should send segment info before gap event */
+ gst_flups_demux_send_segment (demux, stream, GST_CLOCK_TIME_NONE);
+
GST_DEBUG_OBJECT (demux,
"Sending gap update to pad %s time %" GST_TIME_FORMAT,
GST_PAD_NAME (stream->pad), GST_TIME_ARGS (new_start));