mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
qtdemux: Use the demuxer segment instead of a new one for MSS streams
Upstream might have told us something about the to be expected segment, so let's use that information instead of coming up with a [0,-1] segment. https://bugzilla.gnome.org/show_bug.cgi?id=767071
This commit is contained in:
parent
84e698c531
commit
4498e57c10
1 changed files with 2 additions and 3 deletions
|
@ -6281,10 +6281,9 @@ gst_qtdemux_process_adapter (GstQTDemux * demux, gboolean force)
|
|||
/* in MSS we need to expose the pads after the first moof as we won't get a moov */
|
||||
if (demux->mss_mode && !demux->exposed) {
|
||||
if (!demux->pending_newsegment) {
|
||||
GstSegment segment;
|
||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||
GST_DEBUG_OBJECT (demux, "new pending_newsegment");
|
||||
demux->pending_newsegment = gst_event_new_segment (&segment);
|
||||
demux->pending_newsegment =
|
||||
gst_event_new_segment (&demux->segment);
|
||||
if (demux->segment_seqnum)
|
||||
gst_event_set_seqnum (demux->pending_newsegment,
|
||||
demux->segment_seqnum);
|
||||
|
|
Loading…
Reference in a new issue