Commit a8634584 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: mp4: reset stream position on late open failure

parent de9f21a4
......@@ -953,6 +953,9 @@ static int Open( vlc_object_t * p_this )
return VLC_SUCCESS;
error:
if( stream_Tell( p_demux->s ) > 0 )
stream_Seek( p_demux->s, 0 );
if( p_sys->p_root )
{
MP4_BoxFree( p_demux->s, p_sys->p_root );
......
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