Commit fac02ebd authored by Laurent Aimar's avatar Laurent Aimar

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

parent 5b54d676
...@@ -463,13 +463,6 @@ struct input_thread_t ...@@ -463,13 +463,6 @@ struct input_thread_t
* *
* The variable used for event is * The variable used for event is
* - intf-event (\see input_event_type_e) * - 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.
*/ */
/** /**
......
...@@ -68,9 +68,6 @@ static int FrameNextCallback( vlc_object_t *p_this, char const *psz_cmd, ...@@ -68,9 +68,6 @@ static int FrameNextCallback( vlc_object_t *p_this, char const *psz_cmd,
vlc_value_t oldval, vlc_value_t newval, vlc_value_t oldval, vlc_value_t newval,
void *p_data ); 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 typedef struct
{ {
const char *psz_name; const char *psz_name;
...@@ -230,24 +227,6 @@ void input_ControlVarInit ( input_thread_t *p_input ) ...@@ -230,24 +227,6 @@ void input_ControlVarInit ( input_thread_t *p_input )
{ {
/* Special "intf-event" variable. */ /* Special "intf-event" variable. */
var_Create( p_input, "intf-event", VLC_VAR_INTEGER ); 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 /* Add all callbacks
...@@ -840,21 +819,3 @@ static int FrameNextCallback( vlc_object_t *p_this, char const *psz_cmd, ...@@ -840,21 +819,3 @@ static int FrameNextCallback( vlc_object_t *p_this, char const *psz_cmd,
return VLC_SUCCESS; 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 );
}
}
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