mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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).
This commit is contained in:
parent
19ccb5f6ec
commit
a55257b6d8
2 changed files with 16 additions and 8 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2006-02-17 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* gst/qtdemux/qtdemux.c: (gst_qtdemux_loop_state_movie):
|
||||||
|
Don't GST_LOG timestamps from nonexistent index
|
||||||
|
entries (#331582).
|
||||||
|
|
||||||
2006-02-17 Edward Hervey <edward@fluendo.com>
|
2006-02-17 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
* gst/qtdemux/qtdemux.c: (gst_qtdemux_loop_state_header):
|
* gst/qtdemux/qtdemux.c: (gst_qtdemux_loop_state_header):
|
||||||
|
|
|
@ -642,14 +642,16 @@ gst_qtdemux_loop_state_movie (GstQTDemux * qtdemux)
|
||||||
min_time = G_MAXUINT64;
|
min_time = G_MAXUINT64;
|
||||||
for (i = 0; i < qtdemux->n_streams; i++) {
|
for (i = 0; i < qtdemux->n_streams; i++) {
|
||||||
stream = qtdemux->streams[i];
|
stream = qtdemux->streams[i];
|
||||||
GST_LOG_OBJECT (qtdemux,
|
if (stream->sample_index < stream->n_samples) {
|
||||||
"stream %d: sample_index %d, timestamp %" GST_TIME_FORMAT, i,
|
GST_LOG_OBJECT (qtdemux,
|
||||||
stream->sample_index,
|
"stream %d: sample_index %d, timestamp %" GST_TIME_FORMAT, i,
|
||||||
GST_TIME_ARGS (stream->samples[stream->sample_index].timestamp));
|
stream->sample_index,
|
||||||
if (stream->sample_index < stream->n_samples
|
GST_TIME_ARGS (stream->samples[stream->sample_index].timestamp));
|
||||||
&& stream->samples[stream->sample_index].timestamp < min_time) {
|
|
||||||
min_time = stream->samples[stream->sample_index].timestamp;
|
if (stream->samples[stream->sample_index].timestamp < min_time) {
|
||||||
index = i;
|
min_time = stream->samples[stream->sample_index].timestamp;
|
||||||
|
index = i;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (index == -1) {
|
if (index == -1) {
|
||||||
|
|
Loading…
Reference in a new issue