Commit aee23e64 authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

demux: subtitle: fix unchecked seek warning

parent e8d654b0
......@@ -526,8 +526,12 @@ static int Open ( vlc_object_t *p_this )
msg_Dbg( p_demux, "loading all subtitles..." );
if( unicode ) /* skip BOM */
vlc_stream_Seek( p_demux->s, 3 );
if( unicode && /* skip BOM */
vlc_stream_Seek( p_demux->s, 3 ) != VLC_SUCCESS )
{
Close( p_this );
return VLC_EGENERIC;
}
/* Load the whole file */
TextLoad( &p_sys->txt, p_demux->s );
......
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