oggdemux: don't seek when no current chain

Avoid a crash when we try to seek when there is no current chain.
This commit is contained in:
Wim Taymans 2010-05-06 13:10:54 +02:00
parent e33425e4d0
commit 02a78f528c

View file

@ -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 */