Commit 78a8771f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

oggseek: Reset stream after searching for the last frame

parent 84dc54e0
......@@ -705,6 +705,10 @@ static int64_t find_last_theora_frame ( demux_t *p_demux, logical_stream_t *p_st
* adverse effects. */
seek_byte( p_demux, 0 );
/* Reset stream states */
p_stream->i_serial_no = ogg_page_serialno( &p_demux->p_sys->current_page );
ogg_stream_init( &p_stream->os, p_stream->i_serial_no );
ogg_stream_pagein( &p_stream->os, &p_demux->p_sys->current_page );
return i_frame;
}
......
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