From 02a78f528ccf607ade934862a19600a4a21167a3 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 6 May 2010 13:10:54 +0200 Subject: [PATCH] oggdemux: don't seek when no current chain Avoid a crash when we try to seek when there is no current chain. --- ext/ogg/gstoggdemux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index e41d04f309..c29e0e44a9 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -2384,6 +2384,8 @@ gst_ogg_demux_perform_seek_push (GstOggDemux * ogg, GstEvent * event) } chain = ogg->current_chain; + if (!chain) + return FALSE; if (do_index_search (ogg, chain, 0, -1, 0, -1, start, &best, &best_time)) { /* the index gave some result */