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:
parent
e33425e4d0
commit
02a78f528c
@ -2384,6 +2384,8 @@ gst_ogg_demux_perform_seek_push (GstOggDemux * ogg, GstEvent * event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
chain = ogg->current_chain;
|
chain = ogg->current_chain;
|
||||||
|
if (!chain)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
if (do_index_search (ogg, chain, 0, -1, 0, -1, start, &best, &best_time)) {
|
if (do_index_search (ogg, chain, 0, -1, 0, -1, start, &best, &best_time)) {
|
||||||
/* the index gave some result */
|
/* the index gave some result */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user