summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-11-24 10:57:28 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-11-24 10:57:28 -0300
commit2dbc9f86fce28f7f06205b6668d568e754b89ba9 (patch)
tree558261c0093161fc24add30fcb4be40fd48a6656
parent1a55fd42af6d4d76166f7fc80ed3f9afe8cec616 (diff)
qtdemux: restore the segment on case of soft reset
When seeking back to restore the mdat position a flush is pushed through and it resets downstream segment information. Make sure that after the flush (that does a soft reset) a segment will be pushed again Fixes regressions spotted at https://ci.gstreamer.net/job/GStreamer-master-validate/2100/
-rw-r--r--gst/isomp4/qtdemux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c
index db2bbd06b..4bf88d8cb 100644
--- a/gst/isomp4/qtdemux.c
+++ b/gst/isomp4/qtdemux.c
@@ -1995,6 +1995,9 @@ gst_qtdemux_reset (GstQTDemux * qtdemux, gboolean hard)
qtdemux->streams[n]->time_position = 0;
qtdemux->streams[n]->accumulated_base = 0;
}
+ if (!qtdemux->pending_newsegment) {
+ qtdemux->pending_newsegment = gst_event_new_segment (&qtdemux->segment);
+ }
}
}