mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
metadata: append_sorted should really append sorted
... which means that identical offset_orig should preserve the order in which they are appended.
This commit is contained in:
parent
5f4f24fb76
commit
a6ba273e36
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ metadata_chunk_array_append_sorted (MetadataChunkArray * array,
|
|||
}
|
||||
pos = array->len;
|
||||
for (i = array->len - 1; i >= 0; --i) {
|
||||
if (chunk->offset_orig > array->chunk[i].offset_orig) {
|
||||
if (chunk->offset_orig >= array->chunk[i].offset_orig) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue