[vlc-commits] Remove unused INPUT_ADD_OPTION

Rémi Denis-Courmont git at videolan.org
Tue Jul 12 17:14:40 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul 12 17:41:32 2011 +0300| [6e0aabe696dab498e1528aed2dd8363b64f069af] | committer: Rémi Denis-Courmont

Remove unused INPUT_ADD_OPTION

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6e0aabe696dab498e1528aed2dd8363b64f069af
---

 include/vlc_input.h |    3 ---
 src/input/control.c |   16 ----------------
 2 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/include/vlc_input.h b/include/vlc_input.h
index 5d7df89..bd1e48d 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -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 */
 
diff --git a/src/input/control.c b/src/input/control.c
index e93b6dc..de8d8a1 100644
--- a/src/input/control.c
+++ b/src/input/control.c
@@ -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 * );
 



More information about the vlc-commits mailing list