Commit bf802ce0 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>
(cherry picked from commit bc3f40f7321db0f8c1015d2f3d2ce6ef3db88fd4)
parent 0faaa38a
...@@ -3198,14 +3198,19 @@ static void SubtitleAdd( input_thread_t *p_input, char *psz_subtitle, bool b_for ...@@ -3198,14 +3198,19 @@ static void SubtitleAdd( input_thread_t *p_input, char *psz_subtitle, bool b_for
free( psz_path ); free( psz_path );
} }
char *url = make_URI( psz_subtitle );
var_Change( p_input, "spu-es", VLC_VAR_CHOICESCOUNT, &count, NULL ); var_Change( p_input, "spu-es", VLC_VAR_CHOICESCOUNT, &count, NULL );
sub = InputSourceNew( p_input ); 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( sub );
free( url );
return; return;
} }
free( url );
TAB_APPEND( p_input->p->i_slave, p_input->p->slave, sub ); TAB_APPEND( p_input->p->i_slave, p_input->p->slave, sub );
/* Select the ES */ /* 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