From d4ceb8c7a6bd48a17810d368400b65de35edf1ae Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Fri, 19 Nov 2010 12:44:18 +0100 Subject: 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. --- gst/qtdemux/qtdemux.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index 812068778..880758523 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -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 */ -- cgit v1.2.3