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
a30f9045
Commit
a30f9045
authored
May 22, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: use type-checked variable setters
parent
088c1ccc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/input/var.c
src/input/var.c
+3
-4
No files found.
src/input/var.c
View file @
a30f9045
...
@@ -185,8 +185,8 @@ void input_ControlVarInit ( input_thread_t *p_input )
...
@@ -185,8 +185,8 @@ void input_ControlVarInit ( input_thread_t *p_input )
/* Delay */
/* Delay */
var_Create
(
p_input
,
"audio-delay"
,
VLC_VAR_TIME
);
var_Create
(
p_input
,
"audio-delay"
,
VLC_VAR_TIME
);
va
l
.
i_time
=
INT64_C
(
1000
)
*
var_GetInteger
(
p_input
,
"audio-desync"
);
va
r_SetTime
(
p_input
,
"audio-delay"
,
var_Change
(
p_input
,
"audio-delay"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
1000
*
var_GetInteger
(
p_input
,
"audio-desync"
)
);
var_Create
(
p_input
,
"spu-delay"
,
VLC_VAR_TIME
);
var_Create
(
p_input
,
"spu-delay"
,
VLC_VAR_TIME
);
/* Video ES */
/* Video ES */
...
@@ -205,8 +205,7 @@ void input_ControlVarInit ( input_thread_t *p_input )
...
@@ -205,8 +205,7 @@ void input_ControlVarInit ( input_thread_t *p_input )
var_Change
(
p_input
,
"spu-es"
,
VLC_VAR_SETTEXT
,
&
text
,
NULL
);
var_Change
(
p_input
,
"spu-es"
,
VLC_VAR_SETTEXT
,
&
text
,
NULL
);
var_Create
(
p_input
,
"spu-choice"
,
VLC_VAR_INTEGER
);
var_Create
(
p_input
,
"spu-choice"
,
VLC_VAR_INTEGER
);
val
.
i_int
=
-
1
;
var_SetInteger
(
p_input
,
"spu-choice"
,
-
1
);
var_Change
(
p_input
,
"spu-choice"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
/* Special read only objects variables for intf */
/* Special read only objects variables for intf */
var_Create
(
p_input
,
"bookmarks"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_input
,
"bookmarks"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
...
...
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