summaryrefslogtreecommitdiffstats
path: root/gst/matroska
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-05-11 18:18:36 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-05-11 18:18:36 +0200
commit4cb39bc723522ba21e6a54acd71093b774ae0a8c (patch)
tree32006087e1b936c4ad4e390988f3fb8346cf4e6d /gst/matroska
parenta62ed3b153f13cdf24ffa511c8600394dbf94247 (diff)
matroskademux: Use the first index entry if it's after the seek position
Diffstat (limited to 'gst/matroska')
-rw-r--r--gst/matroska/matroska-demux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index ec07d96b..5038b4c7 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;
}