From bf802ce0c4e20b82e8462423088b009e2a701727 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Wed, 12 May 2010 19:23:47 +0300 Subject: [PATCH] Missing path->URI conversion for subtitles MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: RĂ©mi Denis-Courmont (cherry picked from commit bc3f40f7321db0f8c1015d2f3d2ce6ef3db88fd4) --- src/input/input.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/input/input.c b/src/input/input.c index 06b7c00fc3..e53a6c6df5 100644 --- a/src/input/input.c +++ b/src/input/input.c @@ -3198,14 +3198,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 */ -- 2.11.4.GIT