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
8285136c
Commit
8285136c
authored
Feb 27, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hotkeys: factorization.
parent
da8ff69a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
19 deletions
+4
-19
modules/control/hotkeys.c
modules/control/hotkeys.c
+4
-19
No files found.
modules/control/hotkeys.c
View file @
8285136c
...
@@ -163,7 +163,6 @@ static void Run( intf_thread_t *p_intf )
...
@@ -163,7 +163,6 @@ static void Run( intf_thread_t *p_intf )
{
{
vout_thread_t
*
p_vout
=
NULL
;
vout_thread_t
*
p_vout
=
NULL
;
vlc_value_t
val
;
vlc_value_t
val
;
int
i
;
playlist_t
*
p_playlist
=
pl_Hold
(
p_intf
);
playlist_t
*
p_playlist
=
pl_Hold
(
p_intf
);
int
canc
=
vlc_savecancel
();
int
canc
=
vlc_savecancel
();
...
@@ -198,6 +197,7 @@ static void Run( intf_thread_t *p_intf )
...
@@ -198,6 +197,7 @@ static void Run( intf_thread_t *p_intf )
/* Register OSD channels */
/* Register OSD channels */
if
(
p_vout
&&
p_vout
!=
p_last_vout
)
if
(
p_vout
&&
p_vout
!=
p_last_vout
)
{
{
int
i
;
for
(
i
=
0
;
i
<
CHANNELS_NUMBER
;
i
++
)
for
(
i
=
0
;
i
<
CHANNELS_NUMBER
;
i
++
)
{
{
spu_Control
(
p_vout
->
p_spu
,
SPU_CHANNEL_REGISTER
,
spu_Control
(
p_vout
->
p_spu
,
SPU_CHANNEL_REGISTER
,
...
@@ -502,22 +502,13 @@ static void Run( intf_thread_t *p_intf )
...
@@ -502,22 +502,13 @@ static void Run( intf_thread_t *p_intf )
{
{
msg_Warn
(
p_input
,
msg_Warn
(
p_input
,
"invalid current audio track, selecting 0"
);
"invalid current audio track, selecting 0"
);
var_Set
(
p_input
,
"audio-es"
,
list
.
p_list
->
p_values
[
0
]
);
i
=
0
;
i
=
0
;
}
}
else
if
(
i
==
i_count
-
1
)
else
if
(
i
==
i_count
-
1
)
{
var_Set
(
p_input
,
"audio-es"
,
list
.
p_list
->
p_values
[
1
]
);
i
=
1
;
i
=
1
;
}
else
else
{
var_Set
(
p_input
,
"audio-es"
,
list
.
p_list
->
p_values
[
i
+
1
]
);
i
++
;
i
++
;
}
var_Set
(
p_input
,
"audio-es"
,
list
.
p_list
->
p_values
[
i
]
);
vout_OSDMessage
(
VLC_OBJECT
(
p_input
),
DEFAULT_CHAN
,
vout_OSDMessage
(
VLC_OBJECT
(
p_input
),
DEFAULT_CHAN
,
_
(
"Audio track: %s"
),
_
(
"Audio track: %s"
),
list2
.
p_list
->
p_values
[
i
].
psz_string
);
list2
.
p_list
->
p_values
[
i
].
psz_string
);
...
@@ -549,19 +540,13 @@ static void Run( intf_thread_t *p_intf )
...
@@ -549,19 +540,13 @@ static void Run( intf_thread_t *p_intf )
{
{
msg_Warn
(
p_input
,
msg_Warn
(
p_input
,
"invalid current subtitle track, selecting 0"
);
"invalid current subtitle track, selecting 0"
);
var_Set
(
p_input
,
"spu-es"
,
list
.
p_list
->
p_values
[
0
]
);
i
=
0
;
i
=
0
;
}
}
else
if
(
i
==
i_count
-
1
)
else
if
(
i
==
i_count
-
1
)
{
var_Set
(
p_input
,
"spu-es"
,
list
.
p_list
->
p_values
[
0
]
);
i
=
0
;
i
=
0
;
}
else
else
{
i
++
;
var_Set
(
p_input
,
"spu-es"
,
list
.
p_list
->
p_values
[
i
+
1
]
);
var_Set
(
p_input
,
"spu-es"
,
list
.
p_list
->
p_values
[
i
]
);
i
=
i
+
1
;
}
vout_OSDMessage
(
VLC_OBJECT
(
p_input
),
DEFAULT_CHAN
,
vout_OSDMessage
(
VLC_OBJECT
(
p_input
),
DEFAULT_CHAN
,
_
(
"Subtitle track: %s"
),
_
(
"Subtitle track: %s"
),
list2
.
p_list
->
p_values
[
i
].
psz_string
);
list2
.
p_list
->
p_values
[
i
].
psz_string
);
...
...
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