Commit 31438ef4 authored by Vincent Penquerc'h's avatar Vincent Penquerc'h

oggdemux: safety for failing to determine time length in push mode

If we can't find a valid granule near the end of the file, we
disable seeking. This guards against the whole file being then
read and never going to PLAYING.
parent 6f856cb5
......@@ -1538,6 +1538,10 @@ gst_ogg_demux_seek_back_after_push_duration_check_unlock (GstOggDemux * ogg)
event = ogg->push_mode_seek_delayed_event;
ogg->push_mode_seek_delayed_event = NULL;
/* if we haven't learnt about the total time yet, disable seeking */
if (ogg->total_time == -1)
ogg->push_disable_seeking = TRUE;
ogg->push_state = PUSH_PLAYING;
/* If there is one, perform it. Otherwise, seek back at start to start
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment