summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2010-11-19 12:44:18 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2010-12-03 15:52:08 +0100
commitd4ceb8c7a6bd48a17810d368400b65de35edf1ae (patch)
tree11e24b77b06ab4d9506f9fd1963b40f7f3171d06
parent39a3fd40bfe21d2d40861a3a5cdaa28be9b28ab1 (diff)
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.
-rw-r--r--gst/qtdemux/qtdemux.c6
1 files changed, 0 insertions, 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 */