Commit dc06ad9f authored by Laurent Aimar's avatar Laurent Aimar

Revert "Keep p_input->i_state when adding a subtitle on the fly.

I will properly fix it.

This reverts commit 1e6d1086.
parent 3c31b6cd
...@@ -2813,8 +2813,6 @@ bool input_AddSubtitles( input_thread_t *p_input, char *psz_subtitle, ...@@ -2813,8 +2813,6 @@ bool input_AddSubtitles( input_thread_t *p_input, char *psz_subtitle,
vlc_value_t list; vlc_value_t list;
char *psz_path, *psz_extension; char *psz_path, *psz_extension;
int i_state = p_input->i_state;
if( b_check_extension && !subtitles_Filter( psz_subtitle ) ) if( b_check_extension && !subtitles_Filter( psz_subtitle ) )
{ {
return false; return false;
...@@ -2864,7 +2862,6 @@ bool input_AddSubtitles( input_thread_t *p_input, char *psz_subtitle, ...@@ -2864,7 +2862,6 @@ bool input_AddSubtitles( input_thread_t *p_input, char *psz_subtitle,
} }
var_Change( p_input, "spu-es", VLC_VAR_FREELIST, &list, NULL ); var_Change( p_input, "spu-es", VLC_VAR_FREELIST, &list, NULL );
} }
input_ChangeState( p_input, i_state );
} }
else free( sub ); else free( sub );
......
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