]> git.sesse.net Git - vlc/commitdiff
Remove unused INPUT_ADD_OPTION
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 12 Jul 2011 14:41:32 +0000 (17:41 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 12 Jul 2011 15:14:36 +0000 (18:14 +0300)
include/vlc_input.h
src/input/control.c

index 5d7df895b12b034c4916f6806a175176c9ddbd1a..bd1e48d1ce62a51ffd3dbebb1378e895a7790f16 100644 (file)
@@ -479,9 +479,6 @@ enum input_query_e
     INPUT_DEL_INFO,   /* arg1= char* arg2= char*              res=can fail */
     INPUT_SET_NAME,   /* arg1= char* res=can fail    */
 
-    /* Input config options */
-    INPUT_ADD_OPTION,      /* arg1= char * arg2= char *  res=can fail*/
-
     /* Input properties */
     INPUT_GET_VIDEO_FPS,         /* arg1= double *        res=can fail */
 
index e93b6dc10a4d30b47ac7071382565455e2eb7f42..de8d8a11fff264ce6cb16e5b3d108a6a552d4ae8 100644 (file)
@@ -349,22 +349,6 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
             }
         }
 
-        case INPUT_ADD_OPTION:
-        {
-            const char *psz_option = va_arg( args, const char * );
-            const char *psz_value = va_arg( args, const char * );
-            char *str;
-            int i;
-
-            if( asprintf( &str, "%s=%s", psz_option, psz_value ) == -1 )
-                return VLC_ENOMEM;
-
-            i = input_item_AddOption( p_input->p->p_item, str,
-                                      VLC_INPUT_OPTION_UNIQUE );
-            free( str );
-            return i;
-        }
-
         case INPUT_GET_VIDEO_FPS:
             pf = (double*)va_arg( args, double * );