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
1d536ab9
Commit
1d536ab9
authored
May 26, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hotkeys: fix memleak with var_Change(VLC_VAR_GETCHOICES).
parent
aeb955d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
modules/control/hotkeys.c
modules/control/hotkeys.c
+8
-0
No files found.
modules/control/hotkeys.c
View file @
1d536ab9
...
...
@@ -387,6 +387,8 @@ static void Run( intf_thread_t *p_intf )
_
(
"Audio Device: %s"
),
list2
.
p_list
->
p_values
[
i
].
psz_string
);
}
var_Change
(
p_aout
,
"audio-device"
,
VLC_VAR_FREELIST
,
&
list
,
&
list2
);
}
/* Input options */
else
if
(
p_input
)
...
...
@@ -478,6 +480,8 @@ static void Run( intf_thread_t *p_intf )
_
(
"Audio track: %s"
),
list2
.
p_list
->
p_values
[
i
].
psz_string
);
}
var_Change
(
p_input
,
"audio-es"
,
VLC_VAR_FREELIST
,
&
list
,
&
list2
);
}
else
if
(
i_action
==
ACTIONID_SUBTITLE_TRACK
)
{
...
...
@@ -492,6 +496,8 @@ static void Run( intf_thread_t *p_intf )
{
vout_OSDMessage
(
VLC_OBJECT
(
p_input
),
DEFAULT_CHAN
,
_
(
"Subtitle track: %s"
),
_
(
"N/A"
)
);
var_Change
(
p_input
,
"spu-es"
,
VLC_VAR_FREELIST
,
&
list
,
&
list2
);
continue
;
}
for
(
i
=
0
;
i
<
i_count
;
i
++
)
...
...
@@ -516,6 +522,8 @@ static void Run( intf_thread_t *p_intf )
vout_OSDMessage
(
VLC_OBJECT
(
p_input
),
DEFAULT_CHAN
,
_
(
"Subtitle track: %s"
),
list2
.
p_list
->
p_values
[
i
].
psz_string
);
var_Change
(
p_input
,
"spu-es"
,
VLC_VAR_FREELIST
,
&
list
,
&
list2
);
}
else
if
(
i_action
==
ACTIONID_ASPECT_RATIO
&&
p_vout
)
{
...
...
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