Commit ef7c26f5 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

input: Remove dead code

parent 31e42400
......@@ -463,7 +463,6 @@ enum input_query_e
INPUT_ADD_SLAVE, /* arg1= enum slave_type, arg2= const char *,
* arg3= bool forced, arg4= bool notify,
* arg5= bool check_extension */
INPUT_ADD_SUBTITLE, /* arg1= const char *, arg2=bool b_check_extension */
/* On the fly record while playing */
INPUT_SET_RECORD_STATE, /* arg1=bool res=can fail */
......
......@@ -450,19 +450,6 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
return VLC_SUCCESS;
}
case INPUT_ADD_SUBTITLE:
psz = va_arg( args, char * );
b_bool = va_arg( args, int );
if( !psz || *psz == '\0' )
return VLC_EGENERIC;
if( b_bool && !subtitles_Filter( psz ) )
return VLC_EGENERIC;
val.psz_string = strdup( psz );
input_ControlPush( p_input, INPUT_CONTROL_ADD_SUBTITLE, &val );
return VLC_SUCCESS;
case INPUT_GET_ATTACHMENTS: /* arg1=input_attachment_t***, arg2=int* res=can fail */
{
input_attachment_t ***ppp_attachment = va_arg( args, input_attachment_t *** );
......
......@@ -1690,9 +1690,6 @@ static void ControlRelease( int i_type, vlc_value_t val )
{
switch( i_type )
{
case INPUT_CONTROL_ADD_SUBTITLE:
free( val.psz_string );
break;
case INPUT_CONTROL_ADD_SLAVE:
if( val.p_address )
input_item_slave_Delete( val.p_address );
......@@ -2226,19 +2223,6 @@ static bool Control( input_thread_t *p_input,
break;
}
case INPUT_CONTROL_ADD_SUBTITLE:
if( val.psz_string )
{
char *psz_uri = input_SubtitleFile2Uri( p_input, val.psz_string );
if( psz_uri != NULL )
{
input_SlaveSourceAdd( p_input, SLAVE_TYPE_SPU, psz_uri,
SLAVE_ADD_FORCED );
free( psz_uri );
}
}
break;
case INPUT_CONTROL_ADD_SLAVE:
if( val.p_address )
{
......
......@@ -228,8 +228,6 @@ enum input_control_e
INPUT_CONTROL_ADD_SLAVE,
INPUT_CONTROL_ADD_SUBTITLE,
INPUT_CONTROL_SET_RECORD_STATE,
INPUT_CONTROL_SET_FRAME_NEXT,
......
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