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
1f2a1a8d
Commit
1f2a1a8d
authored
Dec 30, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gestures: use var_Inherit
parent
46db660c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/control/gestures.c
modules/control/gestures.c
+6
-6
No files found.
modules/control/gestures.c
View file @
1f2a1a8d
...
...
@@ -130,13 +130,13 @@ int Open ( vlc_object_t *p_this )
p_sys
->
p_vout
=
NULL
;
p_sys
->
b_got_gesture
=
false
;
p_sys
->
b_button_pressed
=
false
;
p_sys
->
i_threshold
=
config_GetInt
(
p_intf
,
"gestures-threshold"
);
p_sys
->
i_threshold
=
var_InheritInteger
(
p_intf
,
"gestures-threshold"
);
// Choose the tight button to use
char
*
psz_button
=
config_GetPsz
(
p_intf
,
"gestures-button"
);
if
(
!
strcmp
(
psz_button
,
"left"
)
)
char
*
psz_button
=
var_InheritString
(
p_intf
,
"gestures-button"
);
if
(
psz_button
&&
!
strcmp
(
psz_button
,
"left"
)
)
p_sys
->
i_button_mask
=
1
;
else
if
(
!
strcmp
(
psz_button
,
"middle"
)
)
else
if
(
psz_button
&&
!
strcmp
(
psz_button
,
"middle"
)
)
p_sys
->
i_button_mask
=
2
;
else
// psz_button == "right"
p_sys
->
i_button_mask
=
4
;
...
...
@@ -211,7 +211,7 @@ static void RunIntf( intf_thread_t *p_intf )
p_input
=
playlist_CurrentInput
(
p_playlist
);
if
(
p_input
)
{
i_interval
=
config_GetInt
(
p_intf
,
"short-jump-size"
);
i_interval
=
var_InheritInteger
(
p_intf
,
"short-jump-size"
);
if
(
i_interval
>
0
)
{
mtime_t
i_time
=
(
(
mtime_t
)(
-
i_interval
)
*
1000000L
);
...
...
@@ -226,7 +226,7 @@ static void RunIntf( intf_thread_t *p_intf )
p_input
=
playlist_CurrentInput
(
p_playlist
);
if
(
p_input
)
{
i_interval
=
config_GetInt
(
p_intf
,
"short-jump-size"
);
i_interval
=
var_InheritInteger
(
p_intf
,
"short-jump-size"
);
if
(
i_interval
>
0
)
{
mtime_t
i_time
=
(
(
mtime_t
)(
i_interval
)
*
1000000L
);
...
...
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