[vlc-commits] input: remove unused INPUT_GET_INFO

Rémi Denis-Courmont git at videolan.org
Wed May 17 19:34:59 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed May 17 20:31:53 2017 +0300| [916322069faedd6c4705185b89fd26493613140b] | committer: Rémi Denis-Courmont

input: remove unused INPUT_GET_INFO

input_item_GetInfo() can be used directly.

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

 include/vlc_input.h |  1 -
 src/input/control.c | 12 ------------
 2 files changed, 13 deletions(-)

diff --git a/include/vlc_input.h b/include/vlc_input.h
index e72dc6a10f..6faae4638f 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -436,7 +436,6 @@ enum input_query_e
     INPUT_ADD_INFO,   /* arg1= char* arg2= char* arg3=...     res=can fail */
     INPUT_REPLACE_INFOS,/* arg1= info_category_t *            res=cannot fail */
     INPUT_MERGE_INFOS,/* arg1= info_category_t *              res=cannot fail */
-    INPUT_GET_INFO,   /* arg1= char* arg2= char* arg3= char** res=can fail */
     INPUT_DEL_INFO,   /* arg1= char* arg2= char*              res=can fail */
 
     /* bookmarks */
diff --git a/src/input/control.c b/src/input/control.c
index 55125d522f..2891c5d8d9 100644
--- a/src/input/control.c
+++ b/src/input/control.c
@@ -192,18 +192,6 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
                 input_SendEventMetaInfo( p_input );
             return i_ret;
         }
-        case INPUT_GET_INFO:
-        {
-            char *psz_cat = (char *)va_arg( args, char * );
-            char *psz_name = (char *)va_arg( args, char * );
-            char **ppsz_value = (char **)va_arg( args, char ** );
-            int i_ret = VLC_EGENERIC;
-            *ppsz_value = NULL;
-
-            *ppsz_value = input_item_GetInfo( priv->p_item, psz_cat,
-                                              psz_name );
-            return i_ret;
-        }
 
         case INPUT_ADD_BOOKMARK:
             p_bkmk = (seekpoint_t *)va_arg( args, seekpoint_t * );



More information about the vlc-commits mailing list