Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
a178e862
Commit
a178e862
authored
Mar 25, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gestures: no need to retain p_playlist longer than really needed.
parent
6b20068d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
17 deletions
+6
-17
modules/control/gestures.c
modules/control/gestures.c
+6
-17
No files found.
modules/control/gestures.c
View file @
a178e862
...
...
@@ -226,12 +226,10 @@ static void RunIntf( intf_thread_t *p_intf )
break
;
p_input
=
input_from_playlist
(
p_playlist
);
vlc_object_release
(
p_playlist
);
if
(
!
p_input
)
{
vlc_object_release
(
p_playlist
);
break
;
}
val
.
i_int
=
PLAYING_S
;
if
(
p_input
)
...
...
@@ -249,7 +247,6 @@ static void RunIntf( intf_thread_t *p_intf )
}
msg_Dbg
(
p_intf
,
"Play/Pause"
);
vlc_object_release
(
p_input
);
vlc_object_release
(
p_playlist
);
}
break
;
case
GESTURE
(
LEFT
,
DOWN
,
NONE
,
NONE
):
...
...
@@ -310,11 +307,10 @@ static void RunIntf( intf_thread_t *p_intf )
p_input
=
input_from_playlist
(
p_playlist
);
vlc_object_release
(
p_playlist
);
if
(
!
p_input
)
{
vlc_object_release
(
p_playlist
);
break
;
}
var_Get
(
p_input
,
"audio-es"
,
&
val
);
var_Change
(
p_input
,
"audio-es"
,
VLC_VAR_GETCHOICES
,
...
...
@@ -323,7 +319,6 @@ static void RunIntf( intf_thread_t *p_intf )
if
(
i_count
<=
1
)
{
vlc_object_release
(
p_input
);
vlc_object_release
(
p_playlist
);
continue
;
}
for
(
i
=
0
;
i
<
i_count
;
i
++
)
...
...
@@ -331,7 +326,6 @@ static void RunIntf( intf_thread_t *p_intf )
if
(
val
.
i_int
==
list
.
p_list
->
p_values
[
i
].
i_int
)
{
vlc_object_release
(
p_input
);
vlc_object_release
(
p_playlist
);
break
;
}
}
...
...
@@ -357,7 +351,6 @@ static void RunIntf( intf_thread_t *p_intf )
i
++
;
}
vlc_object_release
(
p_input
);
vlc_object_release
(
p_playlist
);
}
break
;
case
GESTURE
(
DOWN
,
RIGHT
,
NONE
,
NONE
):
...
...
@@ -373,12 +366,11 @@ static void RunIntf( intf_thread_t *p_intf )
break
;
p_input
=
input_from_playlist
(
p_playlist
);
vlc_object_release
(
p_playlist
);
if
(
!
p_input
)
{
vlc_object_release
(
p_playlist
);
break
;
}
var_Get
(
p_input
,
"spu-es"
,
&
val
);
var_Change
(
p_input
,
"spu-es"
,
VLC_VAR_GETCHOICES
,
...
...
@@ -387,7 +379,6 @@ static void RunIntf( intf_thread_t *p_intf )
if
(
i_count
<=
1
)
{
vlc_object_release
(
p_input
);
vlc_object_release
(
p_playlist
);
continue
;
}
for
(
i
=
0
;
i
<
i_count
;
i
++
)
...
...
@@ -395,7 +386,6 @@ static void RunIntf( intf_thread_t *p_intf )
if
(
val
.
i_int
==
list
.
p_list
->
p_values
[
i
].
i_int
)
{
vlc_object_release
(
p_input
);
vlc_object_release
(
p_playlist
);
break
;
}
}
...
...
@@ -419,7 +409,6 @@ static void RunIntf( intf_thread_t *p_intf )
i
=
i
+
1
;
}
vlc_object_release
(
p_input
);
vlc_object_release
(
p_playlist
);
}
break
;
case
GESTURE
(
UP
,
LEFT
,
NONE
,
NONE
):
...
...
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