matroskademux: Use the first index entry if it's after the seek position

This commit is contained in:
Sebastian Dröge 2009-05-11 18:18:36 +02:00
parent a62ed3b153
commit 4cb39bc723

View file

@ -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;
}