mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
matroskademux: Use the first index entry if it's after the seek position
This commit is contained in:
parent
a62ed3b153
commit
4cb39bc723
1 changed files with 3 additions and 0 deletions
|
@ -1970,6 +1970,9 @@ gst_matroskademux_do_index_seek (GstMatroskaDemux * demux,
|
|||
(GCompareDataFunc) gst_matroska_index_seek_find, GST_SEARCH_MODE_BEFORE,
|
||||
&seek_pos, NULL);
|
||||
|
||||
if (entry == NULL)
|
||||
entry = &g_array_index (index, GstMatroskaIndex, 0);
|
||||
|
||||
return entry;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue