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
b97b7eef
Commit
b97b7eef
authored
Apr 23, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: fix subtitles track update
parent
1a8bfb0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
11 deletions
+24
-11
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+24
-11
No files found.
modules/gui/qt4/menus.cpp
View file @
b97b7eef
...
...
@@ -233,7 +233,6 @@ static int VideoAutoMenuBuilder( vout_thread_t *p_object,
QVector
<
const
char
*>
&
varnames
)
{
PUSH_INPUTVAR
(
"video-es"
);
PUSH_INPUTVAR
(
"spu-es"
);
PUSH_VAR
(
"fullscreen"
);
PUSH_VAR
(
"video-on-top"
);
PUSH_VAR
(
"video-wallpaper"
);
...
...
@@ -249,6 +248,17 @@ static int VideoAutoMenuBuilder( vout_thread_t *p_object,
return
VLC_SUCCESS
;
}
static
int
SubsAutoMenuBuilder
(
input_thread_t
*
p_object
,
QVector
<
vlc_object_t
*>
&
objects
,
QVector
<
const
char
*>
&
varnames
)
{
PUSH_VAR
(
"spu-es"
);
return
VLC_SUCCESS
;
}
static
int
AudioAutoMenuBuilder
(
audio_output_t
*
p_object
,
input_thread_t
*
p_input
,
QVector
<
vlc_object_t
*>
&
objects
,
...
...
@@ -615,19 +625,24 @@ QMenu *VLCMenuBar::AudioMenu( intf_thread_t *p_intf, QMenu * current )
}
/* Subtitles */
QMenu
*
VLCMenuBar
::
SubtitleMenu
(
intf_thread_t
*
,
QMenu
*
current
)
QMenu
*
VLCMenuBar
::
SubtitleMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
current
)
{
input_thread_t
*
p_input
;
QVector
<
vlc_object_t
*>
objects
;
QVector
<
const
char
*>
varnames
;
if
(
current
->
isEmpty
()
)
{
QAction
*
action
;
QMenu
*
submenu
=
new
QMenu
(
qtr
(
"&Subtitle Track"
),
current
);
action
=
current
->
addMenu
(
submenu
);
action
->
setData
(
"spu-es"
);
addDPStaticEntry
(
submenu
,
qtr
(
"Open File..."
),
""
,
addDPStaticEntry
(
current
,
qtr
(
"Add &Subtitle File..."
),
""
,
SLOT
(
loadSubtitlesFile
()
)
);
submenu
->
addSeparator
();
addActionWithSubmenu
(
current
,
"spu-es"
,
qtr
(
"Sub &Track"
)
);
current
->
addSeparator
();
}
return
current
;
p_input
=
THEMIM
->
getInput
();
SubsAutoMenuBuilder
(
p_input
,
objects
,
varnames
);
return
Populate
(
p_intf
,
current
,
varnames
,
objects
);
}
/**
...
...
@@ -644,8 +659,6 @@ QMenu *VLCMenuBar::VideoMenu( intf_thread_t *p_intf, QMenu *current, bool b_subt
if
(
current
->
isEmpty
()
)
{
addActionWithSubmenu
(
current
,
"video-es"
,
qtr
(
"Video &Track"
)
);
if
(
b_subtitle
)
SubtitleMenu
(
p_intf
,
current
);
current
->
addSeparator
();
/* Surface modifiers */
...
...
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