Commit 3207d06b authored by Laurent Aimar's avatar Laurent Aimar

Fixed segfault if more than 1 subtitle has been detected and you have not

selected one with --sub-file
parent 7c7e278d
......@@ -1029,7 +1029,7 @@ static int Init( input_thread_t * p_input )
/* Then, just add the following subtitles files */
for( ; subs && subs[i]; i++ )
{
if( strcmp( psz_subtitle, subs[i] ) )
if( !psz_subtitle || strcmp( psz_subtitle, subs[i] ) )
{
sub = InputSourceNew( p_input );
if( !InputSourceInit( p_input, sub, subs[i], "subtitle" ) )
......
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