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
4d1026c8
Commit
4d1026c8
authored
Mar 26, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trailing spaces and comments.
parent
015ae8d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
24 deletions
+30
-24
modules/control/hotkeys.c
modules/control/hotkeys.c
+30
-24
No files found.
modules/control/hotkeys.c
View file @
4d1026c8
...
...
@@ -234,6 +234,7 @@ static void Run( intf_thread_t *p_intf )
}
}
/* Quit */
if
(
i_action
==
ACTIONID_QUIT
)
{
if
(
p_playlist
)
...
...
@@ -248,6 +249,7 @@ static void Run( intf_thread_t *p_intf )
vlc_object_release
(
p_input
);
continue
;
}
/* Volume and audio actions */
else
if
(
i_action
==
ACTIONID_VOL_UP
)
{
audio_volume_t
i_newvol
;
...
...
@@ -278,10 +280,12 @@ static void Run( intf_thread_t *p_intf )
}
}
}
/* Interface showing */
else
if
(
i_action
==
ACTIONID_INTF_SHOW
)
var_SetBool
(
p_playlist
,
"intf-show"
,
VLC_TRUE
);
else
if
(
i_action
==
ACTIONID_INTF_HIDE
)
var_SetBool
(
p_playlist
,
"intf-show"
,
VLC_FALSE
);
/* Video Output actions */
else
if
(
i_action
==
ACTIONID_SNAPSHOT
)
{
if
(
p_vout
)
vout_Control
(
p_vout
,
VOUT_SNAPSHOT
);
...
...
@@ -308,6 +312,24 @@ static void Run( intf_thread_t *p_intf )
var_SetBool
(
p_vout
,
"fullscreen"
,
VLC_FALSE
);
}
}
else
if
(
i_action
==
ACTIONID_ZOOM_QUARTER
||
i_action
==
ACTIONID_ZOOM_HALF
||
i_action
==
ACTIONID_ZOOM_ORIGINAL
||
i_action
==
ACTIONID_ZOOM_DOUBLE
)
{
if
(
p_vout
)
{
if
(
i_action
==
ACTIONID_ZOOM_QUARTER
)
val
.
f_float
=
0
.
25
;
if
(
i_action
==
ACTIONID_ZOOM_HALF
)
val
.
f_float
=
0
.
5
;
if
(
i_action
==
ACTIONID_ZOOM_ORIGINAL
)
val
.
f_float
=
1
;
if
(
i_action
==
ACTIONID_ZOOM_DOUBLE
)
val
.
f_float
=
2
;
var_Set
(
p_vout
,
"zoom"
,
val
);
}
}
else
if
(
i_action
==
ACTIONID_WALLPAPER
)
{
if
(
p_vout
)
...
...
@@ -323,6 +345,7 @@ static void Run( intf_thread_t *p_intf )
var_Set
(
p_playlist
,
"directx-wallpaper"
,
val
);
}
}
/* Playlist actions */
else
if
(
i_action
==
ACTIONID_LOOP
)
{
/* Toggle Normal -> Loop -> Repeat -> Normal ... */
...
...
@@ -352,24 +375,6 @@ static void Run( intf_thread_t *p_intf )
val
.
b_bool
=
!
val
.
b_bool
;
var_Set
(
p_playlist
,
"random"
,
val
);
}
else
if
(
i_action
==
ACTIONID_ZOOM_QUARTER
||
i_action
==
ACTIONID_ZOOM_HALF
||
i_action
==
ACTIONID_ZOOM_ORIGINAL
||
i_action
==
ACTIONID_ZOOM_DOUBLE
)
{
if
(
p_vout
)
{
if
(
i_action
==
ACTIONID_ZOOM_QUARTER
)
val
.
f_float
=
0
.
25
;
if
(
i_action
==
ACTIONID_ZOOM_HALF
)
val
.
f_float
=
0
.
5
;
if
(
i_action
==
ACTIONID_ZOOM_ORIGINAL
)
val
.
f_float
=
1
;
if
(
i_action
==
ACTIONID_ZOOM_DOUBLE
)
val
.
f_float
=
2
;
var_Set
(
p_vout
,
"zoom"
,
val
);
}
}
else
if
(
i_action
==
ACTIONID_PLAY_PAUSE
)
{
val
.
i_int
=
PLAYING_S
;
...
...
@@ -397,6 +402,7 @@ static void Run( intf_thread_t *p_intf )
playlist_Play
(
p_playlist
);
}
}
/* Input options */
else
if
(
p_input
)
{
/* FIXME --fenrir
...
...
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