diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2006-02-17 18:25:42 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2006-02-17 18:25:42 +0000 |
commit | 495d5c58a70c0dd11849d154d5f9c51456545675 (patch) | |
tree | 8dd2f6f1a0864075716085025c1b9b8f47290e3b /gst | |
parent | b73f81517653b316fcb1abab2cd88a9d9b253233 (diff) |
gst/qtdemux/qtdemux.c: Don't GST_LOG timestamps from nonexistent index entries (#331582).
Original commit message from CVS:
* gst/qtdemux/qtdemux.c: (gst_qtdemux_loop_state_movie):
Don't GST_LOG timestamps from nonexistent index
entries (#331582).
Diffstat (limited to 'gst')
-rw-r--r-- | gst/qtdemux/qtdemux.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index fca86a34..df9f57b7 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -642,14 +642,16 @@ gst_qtdemux_loop_state_movie (GstQTDemux * qtdemux) min_time = G_MAXUINT64; for (i = 0; i < qtdemux->n_streams; i++) { stream = qtdemux->streams[i]; - GST_LOG_OBJECT (qtdemux, - "stream %d: sample_index %d, timestamp %" GST_TIME_FORMAT, i, - stream->sample_index, - GST_TIME_ARGS (stream->samples[stream->sample_index].timestamp)); - if (stream->sample_index < stream->n_samples - && stream->samples[stream->sample_index].timestamp < min_time) { - min_time = stream->samples[stream->sample_index].timestamp; - index = i; + if (stream->sample_index < stream->n_samples) { + GST_LOG_OBJECT (qtdemux, + "stream %d: sample_index %d, timestamp %" GST_TIME_FORMAT, i, + stream->sample_index, + GST_TIME_ARGS (stream->samples[stream->sample_index].timestamp)); + + if (stream->samples[stream->sample_index].timestamp < min_time) { + min_time = stream->samples[stream->sample_index].timestamp; + index = i; + } } } if (index == -1) { |