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
8420dc4e
Commit
8420dc4e
authored
Apr 11, 2009
by
Jean-Philippe Andre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix object leak (1 from my previous commit + 2 others)
parent
c7b874c5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
52 deletions
+52
-52
modules/control/hotkeys.c
modules/control/hotkeys.c
+52
-52
No files found.
modules/control/hotkeys.c
View file @
8420dc4e
...
@@ -216,6 +216,8 @@ static void Run( intf_thread_t *p_intf )
...
@@ -216,6 +216,8 @@ static void Run( intf_thread_t *p_intf )
ClearChannels
(
p_intf
,
p_vout
);
ClearChannels
(
p_intf
,
p_vout
);
vout_OSDMessage
(
p_intf
,
DEFAULT_CHAN
,
_
(
"Quit"
)
);
vout_OSDMessage
(
p_intf
,
DEFAULT_CHAN
,
_
(
"Quit"
)
);
if
(
p_aout
)
vlc_object_release
(
p_aout
);
if
(
p_vout
)
if
(
p_vout
)
vlc_object_release
(
p_vout
);
vlc_object_release
(
p_vout
);
if
(
p_input
)
if
(
p_input
)
...
@@ -385,10 +387,8 @@ static void Run( intf_thread_t *p_intf )
...
@@ -385,10 +387,8 @@ static void Run( intf_thread_t *p_intf )
&
list
,
&
list2
);
&
list
,
&
list2
);
i_count
=
list
.
p_list
->
i_count
;
i_count
=
list
.
p_list
->
i_count
;
/* Not enough device to switch between */
if
(
i_count
>
1
)
if
(
i_count
<=
1
)
{
continue
;
for
(
i
=
0
;
i
<
i_count
;
i
++
)
for
(
i
=
0
;
i
<
i_count
;
i
++
)
{
{
if
(
val
.
i_int
==
list
.
p_list
->
p_values
[
i
].
i_int
)
if
(
val
.
i_int
==
list
.
p_list
->
p_values
[
i
].
i_int
)
...
@@ -420,6 +420,7 @@ static void Run( intf_thread_t *p_intf )
...
@@ -420,6 +420,7 @@ static void Run( intf_thread_t *p_intf )
_
(
"Audio Device: %s"
),
_
(
"Audio Device: %s"
),
list2
.
p_list
->
p_values
[
i
].
psz_string
);
list2
.
p_list
->
p_values
[
i
].
psz_string
);
}
}
}
/* Input options */
/* Input options */
else
if
(
p_input
)
else
if
(
p_input
)
{
{
...
@@ -487,10 +488,8 @@ static void Run( intf_thread_t *p_intf )
...
@@ -487,10 +488,8 @@ static void Run( intf_thread_t *p_intf )
var_Change
(
p_input
,
"audio-es"
,
VLC_VAR_GETCHOICES
,
var_Change
(
p_input
,
"audio-es"
,
VLC_VAR_GETCHOICES
,
&
list
,
&
list2
);
&
list
,
&
list2
);
i_count
=
list
.
p_list
->
i_count
;
i_count
=
list
.
p_list
->
i_count
;
if
(
i_count
<=
1
)
if
(
i_count
>
1
)
{
{
continue
;
}
for
(
i
=
0
;
i
<
i_count
;
i
++
)
for
(
i
=
0
;
i
<
i_count
;
i
++
)
{
{
if
(
val
.
i_int
==
list
.
p_list
->
p_values
[
i
].
i_int
)
if
(
val
.
i_int
==
list
.
p_list
->
p_values
[
i
].
i_int
)
...
@@ -514,6 +513,7 @@ static void Run( intf_thread_t *p_intf )
...
@@ -514,6 +513,7 @@ static void Run( intf_thread_t *p_intf )
_
(
"Audio track: %s"
),
_
(
"Audio track: %s"
),
list2
.
p_list
->
p_values
[
i
].
psz_string
);
list2
.
p_list
->
p_values
[
i
].
psz_string
);
}
}
}
else
if
(
i_action
==
ACTIONID_SUBTITLE_TRACK
)
else
if
(
i_action
==
ACTIONID_SUBTITLE_TRACK
)
{
{
vlc_value_t
val
,
list
,
list2
;
vlc_value_t
val
,
list
,
list2
;
...
...
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