Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
fac02ebd
Commit
fac02ebd
authored
Nov 23, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed intf-change-vout/rate-change/stats-change/intf-change.
parent
5b54d676
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
46 deletions
+0
-46
include/vlc_input.h
include/vlc_input.h
+0
-7
src/input/var.c
src/input/var.c
+0
-39
No files found.
include/vlc_input.h
View file @
fac02ebd
...
...
@@ -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.
*/
/**
...
...
src/input/var.c
View file @
fac02ebd
...
...
@@ -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
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment