mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
matroskademux: Keep the segment stop position for update newsegment events
This commit is contained in:
parent
648f0f0b50
commit
3ddb75e3c5
1 changed files with 4 additions and 4 deletions
|
@ -2239,7 +2239,7 @@ gst_matroska_demux_handle_seek_event (GstMatroskaDemux * demux,
|
|||
|
||||
demux->close_segment = gst_event_new_new_segment (TRUE,
|
||||
demux->segment.rate, GST_FORMAT_TIME, demux->segment.start,
|
||||
demux->segment.last_stop, demux->segment.last_stop);
|
||||
demux->segment.last_stop, demux->segment.stop);
|
||||
GST_OBJECT_UNLOCK (demux);
|
||||
}
|
||||
|
||||
|
@ -3520,7 +3520,7 @@ gst_matroska_demux_sync_streams (GstMatroskaDemux * demux)
|
|||
/* advance stream time */
|
||||
gst_pad_push_event (context->pad,
|
||||
gst_event_new_new_segment (TRUE, demux->segment.rate,
|
||||
GST_FORMAT_TIME, demux->segment.last_stop, -1,
|
||||
GST_FORMAT_TIME, demux->segment.last_stop, demux->segment.stop,
|
||||
demux->segment.last_stop));
|
||||
}
|
||||
}
|
||||
|
@ -4357,8 +4357,8 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
|
|||
"stream %d. Sending updated NEWSEGMENT event", diff,
|
||||
stream->index);
|
||||
gst_pad_push_event (stream->pad, gst_event_new_new_segment (TRUE,
|
||||
demux->segment.rate, GST_FORMAT_TIME, lace_time, -1,
|
||||
lace_time));
|
||||
demux->segment.rate, GST_FORMAT_TIME, lace_time,
|
||||
demux->segment.stop, lace_time));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue