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
af279394
Commit
af279394
authored
May 01, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not reuse "osd" variable in osd menu.
parent
daa556bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/osd/osd.c
src/osd/osd.c
+5
-5
No files found.
src/osd/osd.c
View file @
af279394
...
...
@@ -153,8 +153,8 @@ osd_menu_t *osd_MenuCreate( vlc_object_t *p_this, const char *psz_file )
p_lock
=
osd_GetMutex
(
p_this
);
vlc_mutex_lock
(
p_lock
);
var_Create
(
p_this
->
p_libvlc
,
"osd"
,
VLC_VAR_ADDRESS
);
var_Get
(
p_this
->
p_libvlc
,
"osd"
,
&
val
);
var_Create
(
p_this
->
p_libvlc
,
"osd
-object
"
,
VLC_VAR_ADDRESS
);
var_Get
(
p_this
->
p_libvlc
,
"osd
-object
"
,
&
val
);
if
(
val
.
p_address
==
NULL
)
{
static
const
char
osdmenu_name
[]
=
"osd menu"
;
...
...
@@ -200,7 +200,7 @@ osd_menu_t *osd_MenuCreate( vlc_object_t *p_this, const char *psz_file )
var_SetBool
(
p_osd
,
"osd-menu-visible"
,
false
);
val
.
p_address
=
p_osd
;
var_Set
(
p_this
->
p_libvlc
,
"osd"
,
val
);
var_Set
(
p_this
->
p_libvlc
,
"osd
-object
"
,
val
);
}
else
p_osd
=
val
.
p_address
;
...
...
@@ -232,7 +232,7 @@ void osd_MenuDelete( vlc_object_t *p_this, osd_menu_t *p_osd )
var_Destroy
(
p_osd
,
"osd-menu-update"
);
osd_ParserUnload
(
p_osd
);
val
.
p_address
=
NULL
;
var_Set
(
p_this
->
p_libvlc
,
"osd"
,
val
);
var_Set
(
p_this
->
p_libvlc
,
"osd
-object
"
,
val
);
}
vlc_object_release
(
p_osd
);
...
...
@@ -243,7 +243,7 @@ static osd_menu_t *osd_Find( vlc_object_t *p_this )
{
vlc_value_t
val
;
if
(
var_Get
(
p_this
->
p_libvlc
,
"osd"
,
&
val
)
)
if
(
var_Get
(
p_this
->
p_libvlc
,
"osd
-object
"
,
&
val
)
)
return
NULL
;
return
val
.
p_address
;
}
...
...
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