matroskademux: Use the first index entry if it's after the seek position
This commit is contained in:
parent
a62ed3b153
commit
4cb39bc723
@ -1970,6 +1970,9 @@ gst_matroskademux_do_index_seek (GstMatroskaDemux * demux,
|
|||||||
(GCompareDataFunc) gst_matroska_index_seek_find, GST_SEARCH_MODE_BEFORE,
|
(GCompareDataFunc) gst_matroska_index_seek_find, GST_SEARCH_MODE_BEFORE,
|
||||||
&seek_pos, NULL);
|
&seek_pos, NULL);
|
||||||
|
|
||||||
|
if (entry == NULL)
|
||||||
|
entry = &g_array_index (index, GstMatroskaIndex, 0);
|
||||||
|
|
||||||
return entry;
|
return entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user