Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
94d67fe0
Commit
94d67fe0
authored
Feb 26, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gestures: use the right objet for the variable.
parent
2f47743d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
9 deletions
+25
-9
modules/control/gestures.c
modules/control/gestures.c
+25
-9
No files found.
modules/control/gestures.c
View file @
94d67fe0
...
@@ -150,6 +150,7 @@ static void RunIntf( intf_thread_t *p_intf )
...
@@ -150,6 +150,7 @@ static void RunIntf( intf_thread_t *p_intf )
{
{
playlist_t
*
p_playlist
=
NULL
;
playlist_t
*
p_playlist
=
NULL
;
int
canc
=
vlc_savecancel
();
int
canc
=
vlc_savecancel
();
input_thread_t
*
p_input
;
vlc_mutex_lock
(
&
p_intf
->
change_lock
);
vlc_mutex_lock
(
&
p_intf
->
change_lock
);
p_intf
->
p_sys
->
p_vout
=
NULL
;
p_intf
->
p_sys
->
p_vout
=
NULL
;
...
@@ -181,19 +182,37 @@ static void RunIntf( intf_thread_t *p_intf )
...
@@ -181,19 +182,37 @@ static void RunIntf( intf_thread_t *p_intf )
switch
(
p_intf
->
p_sys
->
i_pattern
)
switch
(
p_intf
->
p_sys
->
i_pattern
)
{
{
case
LEFT
:
case
LEFT
:
// Get the current input
p_playlist
=
pl_Hold
(
p_intf
);
p_input
=
playlist_CurrentInput
(
p_playlist
);
pl_Release
(
p_intf
);
if
(
!
p_input
)
break
;
i_interval
=
config_GetInt
(
p_intf
,
"short-jump-size"
);
i_interval
=
config_GetInt
(
p_intf
,
"short-jump-size"
);
if
(
i_interval
>
0
)
{
if
(
i_interval
>
0
)
{
val
.
i_time
=
(
(
mtime_t
)(
-
i_interval
)
*
1000000L
);
val
.
i_time
=
(
(
mtime_t
)(
-
i_interval
)
*
1000000L
);
var_Set
(
p_in
tf
,
"time-offset"
,
val
);
var_Set
(
p_in
put
,
"time-offset"
,
val
);
}
}
vlc_object_release
(
p_input
);
msg_Dbg
(
p_intf
,
"Go backward in the movie!"
);
msg_Dbg
(
p_intf
,
"Go backward in the movie!"
);
break
;
break
;
case
RIGHT
:
case
RIGHT
:
p_playlist
=
pl_Hold
(
p_intf
);
p_input
=
playlist_CurrentInput
(
p_playlist
);
pl_Release
(
p_intf
);
if
(
!
p_input
)
break
;
i_interval
=
config_GetInt
(
p_intf
,
"short-jump-size"
);
i_interval
=
config_GetInt
(
p_intf
,
"short-jump-size"
);
if
(
i_interval
>
0
)
{
if
(
i_interval
>
0
)
{
val
.
i_time
=
(
(
mtime_t
)(
i_interval
)
*
1000000L
);
val
.
i_time
=
(
(
mtime_t
)(
i_interval
)
*
1000000L
);
var_Set
(
p_in
tf
,
"time-offset"
,
val
);
var_Set
(
p_in
put
,
"time-offset"
,
val
);
}
}
vlc_object_release
(
p_input
);
msg_Dbg
(
p_intf
,
"Go forward in the movie!"
);
msg_Dbg
(
p_intf
,
"Go forward in the movie!"
);
break
;
break
;
case
GESTURE
(
LEFT
,
UP
,
NONE
,
NONE
):
case
GESTURE
(
LEFT
,
UP
,
NONE
,
NONE
):
...
@@ -207,7 +226,6 @@ static void RunIntf( intf_thread_t *p_intf )
...
@@ -207,7 +226,6 @@ static void RunIntf( intf_thread_t *p_intf )
case
GESTURE
(
LEFT
,
RIGHT
,
NONE
,
NONE
):
case
GESTURE
(
LEFT
,
RIGHT
,
NONE
,
NONE
):
case
GESTURE
(
RIGHT
,
LEFT
,
NONE
,
NONE
):
case
GESTURE
(
RIGHT
,
LEFT
,
NONE
,
NONE
):
{
{
input_thread_t
*
p_input
;
p_playlist
=
pl_Hold
(
p_intf
);
p_playlist
=
pl_Hold
(
p_intf
);
p_input
=
playlist_CurrentInput
(
p_playlist
);
p_input
=
playlist_CurrentInput
(
p_playlist
);
pl_Release
(
p_intf
);
pl_Release
(
p_intf
);
...
@@ -267,7 +285,6 @@ static void RunIntf( intf_thread_t *p_intf )
...
@@ -267,7 +285,6 @@ static void RunIntf( intf_thread_t *p_intf )
break
;
break
;
case
GESTURE
(
UP
,
RIGHT
,
NONE
,
NONE
):
case
GESTURE
(
UP
,
RIGHT
,
NONE
,
NONE
):
{
{
input_thread_t
*
p_input
;
vlc_value_t
val
,
list
,
list2
;
vlc_value_t
val
,
list
,
list2
;
int
i_count
,
i
;
int
i_count
,
i
;
...
@@ -320,7 +337,6 @@ static void RunIntf( intf_thread_t *p_intf )
...
@@ -320,7 +337,6 @@ static void RunIntf( intf_thread_t *p_intf )
break
;
break
;
case
GESTURE
(
DOWN
,
RIGHT
,
NONE
,
NONE
):
case
GESTURE
(
DOWN
,
RIGHT
,
NONE
,
NONE
):
{
{
input_thread_t
*
p_input
;
vlc_value_t
val
,
list
,
list2
;
vlc_value_t
val
,
list
,
list2
;
int
i_count
,
i
;
int
i_count
,
i
;
...
...
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