mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
qtdemux: Take last sample duration for dummy segment calculation.
This fixes the cases where files without EDL wouldn't output their last buffer.
This commit is contained in:
parent
4e6808bc52
commit
30dd458567
1 changed files with 4 additions and 2 deletions
|
@ -3824,10 +3824,12 @@ done:
|
|||
stream->segments = g_new (QtDemuxSegment, 1);
|
||||
|
||||
/* samples know best */
|
||||
if (stream->n_samples > 0)
|
||||
if (stream->n_samples > 0) {
|
||||
stream_duration =
|
||||
stream->samples[stream->n_samples - 1].timestamp +
|
||||
stream->samples[stream->n_samples - 1].pts_offset;
|
||||
stream->samples[stream->n_samples - 1].pts_offset +
|
||||
stream->samples[stream->n_samples - 1].duration;
|
||||
}
|
||||
|
||||
stream->segments[0].time = 0;
|
||||
stream->segments[0].stop_time = stream_duration;
|
||||
|
|
Loading…
Reference in a new issue