[vlc-devel] commit: Removed intf-change-vout/rate-change/stats-change/intf-change. ( Laurent Aimar )

git version control git at videolan.org
Sun Nov 23 16:00:50 CET 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Nov 23 14:57:30 2008 +0100| [fac02ebd89c2ae371f5bf0cddc1bb5d9a01bb7e1] | committer: Laurent Aimar 

Removed intf-change-vout/rate-change/stats-change/intf-change.

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

 include/vlc_input.h |    7 -------
 src/input/var.c     |   39 ---------------------------------------
 2 files changed, 0 insertions(+), 46 deletions(-)

diff --git a/include/vlc_input.h b/include/vlc_input.h
index 9500b4c..d336de9 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -463,13 +463,6 @@ struct input_thread_t
  *
  * The variable used for event is
  *  - intf-event (\see input_event_type_e)
- *
- * The legacy variable used for event are
- *  - intf-change
- *  - intf-change-vout
- *  - rate-change
- *  - stats-change
- * You are advised to change to intf-event as soon as possible.
  */
 
 /**
diff --git a/src/input/var.c b/src/input/var.c
index c61f357..a3c72ab 100644
--- a/src/input/var.c
+++ b/src/input/var.c
@@ -68,9 +68,6 @@ static int FrameNextCallback( vlc_object_t *p_this, char const *psz_cmd,
                               vlc_value_t oldval, vlc_value_t newval,
                               void *p_data );
 
-static int IntfEvent( vlc_object_t *p_this, char const *psz_cmd,
-                      vlc_value_t oldval, vlc_value_t newval, void *p_data );
-
 typedef struct
 {
     const char *psz_name;
@@ -230,24 +227,6 @@ void input_ControlVarInit ( input_thread_t *p_input )
     {
         /* Special "intf-event" variable. */
         var_Create( p_input, "intf-event", VLC_VAR_INTEGER );
-
-        /* Callback for legacy variables */
-        var_AddCallback( p_input, "intf-event", IntfEvent, NULL );
-
-        /* Legacy variable
-         * TODO remove them when unused */
-        static const char *ppsz_event[] = {
-            "intf-change",
-            "rate-change",
-            "stats-change",
-            "intf-change-vout",
-            NULL
-        };
-        for( int i = 0; ppsz_event[i] != NULL; i++ )
-        {
-            var_Create( p_input, ppsz_event[i], VLC_VAR_BOOL );
-            var_SetBool( p_input, ppsz_event[i], true );
-        }
     }
 
     /* Add all callbacks
@@ -840,21 +819,3 @@ static int FrameNextCallback( vlc_object_t *p_this, char const *psz_cmd,
     return VLC_SUCCESS;
 }
 
-static int IntfEvent( vlc_object_t *p_this, char const *psz_cmd,
-                      vlc_value_t oldval, vlc_value_t newval, void *p_data )
-{
-    VLC_UNUSED(psz_cmd); VLC_UNUSED(oldval); VLC_UNUSED(p_data);
-    switch( newval.i_int )
-    {
-    case INPUT_EVENT_RATE:
-        return var_SetBool( p_this, "rate-change", true );
-    case INPUT_EVENT_STATISTICS:
-        return var_SetBool( p_this, "stats-change", true );
-    case INPUT_EVENT_VOUT:
-        return var_SetBool( p_this, "intf-change-vout", true );
-
-    default:
-        return var_SetBool( p_this, "intf-change", true );
-    }
-}
-




More information about the vlc-devel mailing list