[gst-cvs] gst-plugins-good: matroskademux: Use the first index entry if it' s after the seek position

Sebastian Dröge slomo at kemper.freedesktop.org
Mon May 11 09:21:35 PDT 2009


Module: gst-plugins-good
Branch: master
Commit: 4cb39bc723522ba21e6a54acd71093b774ae0a8c
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=4cb39bc723522ba21e6a54acd71093b774ae0a8c

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Mon May 11 18:18:36 2009 +0200

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

---

 gst/matroska/matroska-demux.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index ec07d96..5038b4c 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;
 }
 





More information about the Gstreamer-commits mailing list