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
ef8cc371
Commit
ef8cc371
authored
Sep 18, 2005
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward port of revision 12566: Ignore menu select|right|left|up|down when OSD Menu is not visible
parent
266e4aa0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
36 deletions
+75
-36
include/vlc_osd.h
include/vlc_osd.h
+1
-1
src/osd/osd.c
src/osd/osd.c
+74
-35
No files found.
include/vlc_osd.h
View file @
ef8cc371
src/osd/osd.c
View file @
ef8cc371
...
...
@@ -40,6 +40,15 @@
static
void
osd_UpdateState
(
osd_menu_state_t
*
,
int
,
int
,
int
,
int
,
picture_t
*
);
static
inline
osd_state_t
*
osd_VolumeStateChange
(
osd_state_t
*
,
int
);
static
int
osd_VolumeStep
(
vlc_object_t
*
,
int
,
int
);
static
vlc_bool_t
osd_isVisible
(
osd_menu_t
*
p_osd
);
static
vlc_bool_t
osd_isVisible
(
osd_menu_t
*
p_osd
)
{
vlc_value_t
val
;
var_Get
(
p_osd
,
"osd-menu-visible"
,
&
val
);
return
val
.
b_bool
;
}
/*****************************************************************************
* OSD menu Funtions
...
...
@@ -263,6 +272,12 @@ void __osd_MenuActivate( vlc_object_t *p_this )
return
;
}
if
(
osd_isVisible
(
p_osd
)
==
VLC_FALSE
)
{
vlc_object_release
(
(
vlc_object_t
*
)
p_osd
);
return
;
}
var_Get
(
p_this
->
p_libvlc
,
"osd_mutex"
,
&
lockval
);
vlc_mutex_lock
(
lockval
.
p_address
);
...
...
@@ -319,6 +334,12 @@ void __osd_MenuNext( vlc_object_t *p_this )
return
;
}
if
(
osd_isVisible
(
p_osd
)
==
VLC_FALSE
)
{
vlc_object_release
(
(
vlc_object_t
*
)
p_osd
);
return
;
}
var_Get
(
p_this
->
p_libvlc
,
"osd_mutex"
,
&
lockval
);
vlc_mutex_lock
(
lockval
.
p_address
);
...
...
@@ -363,6 +384,12 @@ void __osd_MenuPrev( vlc_object_t *p_this )
return
;
}
if
(
osd_isVisible
(
p_osd
)
==
VLC_FALSE
)
{
vlc_object_release
(
(
vlc_object_t
*
)
p_osd
);
return
;
}
var_Get
(
p_this
->
p_libvlc
,
"osd_mutex"
,
&
lockval
);
vlc_mutex_lock
(
lockval
.
p_address
);
...
...
@@ -410,6 +437,12 @@ void __osd_MenuUp( vlc_object_t *p_this )
return
;
}
if
(
osd_isVisible
(
p_osd
)
==
VLC_FALSE
)
{
vlc_object_release
(
(
vlc_object_t
*
)
p_osd
);
return
;
}
var_Get
(
p_this
->
p_libvlc
,
"osd_mutex"
,
&
lockval
);
vlc_mutex_lock
(
lockval
.
p_address
);
...
...
@@ -475,6 +508,12 @@ void __osd_MenuDown( vlc_object_t *p_this )
return
;
}
if
(
osd_isVisible
(
p_osd
)
==
VLC_FALSE
)
{
vlc_object_release
(
(
vlc_object_t
*
)
p_osd
);
return
;
}
var_Get
(
p_this
->
p_libvlc
,
"osd_mutex"
,
&
lockval
);
vlc_mutex_lock
(
lockval
.
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