mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue