diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index ec07d96b68..5038b4c749 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -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; }