Commit bc3f40f7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Missing path->URI conversion for subtitles

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent b522668d
......@@ -3157,14 +3157,19 @@ static void SubtitleAdd( input_thread_t *p_input, char *psz_subtitle, bool b_for
free( psz_path );
}
char *url = make_URI( psz_subtitle );
var_Change( p_input, "spu-es", VLC_VAR_CHOICESCOUNT, &count, NULL );
sub = InputSourceNew( p_input );
if( !sub || InputSourceInit( p_input, sub, psz_subtitle, "subtitle" ) )
if( !sub || !url
|| InputSourceInit( p_input, sub, url, "subtitle" ) )
{
free( sub );
free( url );
return;
}
free( url );
TAB_APPEND( p_input->p->i_slave, p_input->p->slave, sub );
/* Select the ES */
......
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