mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 21:28:45 +00:00
qtmux: fix playback regression
In ae1150e85c
flipping a condition misaligned the
else branch, where for there condition that was change there is none.
Fixes #712303
This commit is contained in:
parent
b450d31503
commit
1a4e7338d9
1 changed files with 6 additions and 6 deletions
|
@ -6276,12 +6276,7 @@ qtdemux_parse_samples (GstQTDemux * qtdemux, QtDemuxStream * stream, guint32 n)
|
||||||
first = &samples[stream->stbl_index];
|
first = &samples[stream->stbl_index];
|
||||||
last = &samples[n];
|
last = &samples[n];
|
||||||
|
|
||||||
if (stream->chunks_are_samples) {
|
if (!stream->chunks_are_samples) {
|
||||||
/* samples have the same size */
|
|
||||||
GST_LOG_OBJECT (qtdemux, "all samples have size %u", stream->sample_size);
|
|
||||||
for (cur = first; cur <= last; cur++)
|
|
||||||
cur->size = stream->sample_size;
|
|
||||||
} else {
|
|
||||||
/* set the sample sizes */
|
/* set the sample sizes */
|
||||||
if (stream->sample_size == 0) {
|
if (stream->sample_size == 0) {
|
||||||
/* different sizes for each sample */
|
/* different sizes for each sample */
|
||||||
|
@ -6290,6 +6285,11 @@ qtdemux_parse_samples (GstQTDemux * qtdemux, QtDemuxStream * stream, guint32 n)
|
||||||
GST_LOG_OBJECT (qtdemux, "sample %d has size %u",
|
GST_LOG_OBJECT (qtdemux, "sample %d has size %u",
|
||||||
(guint) (cur - samples), cur->size);
|
(guint) (cur - samples), cur->size);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
/* samples have the same size */
|
||||||
|
GST_LOG_OBJECT (qtdemux, "all samples have size %u", stream->sample_size);
|
||||||
|
for (cur = first; cur <= last; cur++)
|
||||||
|
cur->size = stream->sample_size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue