From: Wim Taymans Date: Thu, 6 May 2010 11:10:54 +0000 (+0200) Subject: oggdemux: don't seek when no current chain X-Git-Tag: RELEASE-0.10.30~217 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02a78f528ccf607ade934862a19600a4a21167a3;p=platform%2Fupstream%2Fgst-plugins-base.git oggdemux: don't seek when no current chain Avoid a crash when we try to seek when there is no current chain. --- diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index e41d04f..c29e0e4 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 */