mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
qtdemux: remove dead code trying to update stream duration
On the one hand, it insufficiently checks whether it only updates a dummy segment. On the other hand, only doing this at the time the last sampled is prepared (and sent downstream) is too little too late.
This commit is contained in:
parent
39a3fd40bf
commit
d4ceb8c7a6
1 changed files with 0 additions and 6 deletions
|
@ -3059,12 +3059,6 @@ gst_qtdemux_prepare_current_sample (GstQTDemux * qtdemux,
|
|||
*duration = QTSAMPLE_DUR_PTS (stream, sample, *timestamp);
|
||||
*keyframe = QTSAMPLE_KEYFRAME (stream, sample);
|
||||
|
||||
/* update dummy segment duration */
|
||||
if (stream->sample_index == stream->n_samples - 1 && stream->n_segments == 1) {
|
||||
stream->segments[0].duration = stream->segments[0].stop_time =
|
||||
stream->segments[0].media_stop = *timestamp + *duration;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
/* special cases */
|
||||
|
|
Loading…
Reference in a new issue