Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
058853c7
Commit
058853c7
authored
May 21, 2006
by
Yoann Peronneau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* control/hotkeys.c: Fix Play/Pause hotkey
parent
039185d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
modules/control/hotkeys.c
modules/control/hotkeys.c
+14
-10
No files found.
modules/control/hotkeys.c
View file @
058853c7
...
@@ -339,15 +339,22 @@ static void Run( intf_thread_t *p_intf )
...
@@ -339,15 +339,22 @@ static void Run( intf_thread_t *p_intf )
{
{
val
.
i_int
=
PLAYING_S
;
val
.
i_int
=
PLAYING_S
;
if
(
p_input
)
if
(
p_input
)
{
var_Get
(
p_input
,
"state"
,
&
val
);
}
if
(
p_input
&&
val
.
i_int
!=
PAUSE_S
)
{
{
ClearChannels
(
p_intf
,
p_vout
);
ClearChannels
(
p_intf
,
p_vout
);
vout_OSDIcon
(
VLC_OBJECT
(
p_intf
),
DEFAULT_CHAN
,
OSD_PAUSE_ICON
);
var_Get
(
p_input
,
"state"
,
&
val
);
val
.
i_int
=
PAUSE_S
;
if
(
val
.
i_int
!=
PAUSE_S
)
{
vout_OSDIcon
(
VLC_OBJECT
(
p_intf
),
DEFAULT_CHAN
,
OSD_PAUSE_ICON
);
val
.
i_int
=
PAUSE_S
;
}
else
{
vout_OSDIcon
(
VLC_OBJECT
(
p_intf
),
DEFAULT_CHAN
,
OSD_PLAY_ICON
);
val
.
i_int
=
PLAYING_S
;
}
var_Set
(
p_input
,
"state"
,
val
);
var_Set
(
p_input
,
"state"
,
val
);
}
}
else
else
...
@@ -356,9 +363,6 @@ static void Run( intf_thread_t *p_intf )
...
@@ -356,9 +363,6 @@ static void Run( intf_thread_t *p_intf )
FIND_ANYWHERE
);
FIND_ANYWHERE
);
if
(
p_playlist
)
if
(
p_playlist
)
{
{
ClearChannels
(
p_intf
,
p_vout
);
vout_OSDIcon
(
VLC_OBJECT
(
p_intf
),
DEFAULT_CHAN
,
OSD_PLAY_ICON
);
playlist_Play
(
p_playlist
);
playlist_Play
(
p_playlist
);
vlc_object_release
(
p_playlist
);
vlc_object_release
(
p_playlist
);
}
}
...
...
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