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
be95e90b
Commit
be95e90b
authored
Aug 02, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Look for "Title" entry in title 0, instead of always using entry 3
for going to the DVD menu.
parent
5e6f3bde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+16
-3
No files found.
modules/gui/qt4/input_manager.cpp
View file @
be95e90b
...
...
@@ -414,9 +414,22 @@ void InputManager::sectionMenu()
{
if
(
hasInput
()
)
{
// FIXME we should not assume that but probably find the entry named "Root" in "title 0"
vlc_value_t
val
;
val
.
i_int
=
2
;
var_Set
(
p_input
,
"title 0"
,
val
);
vlc_value_t
val
,
text
;
vlc_value_t
root
;
if
(
var_Change
(
p_input
,
"title 0"
,
VLC_VAR_GETLIST
,
&
val
,
&
text
)
<
0
)
return
;
/* XXX is it "Root" or "Title" we want here ?" (set 0 by default) */
root
.
i_int
=
0
;
for
(
int
i
=
0
;
i
<
val
.
p_list
->
i_count
;
i
++
)
{
if
(
!
strcmp
(
text
.
p_list
->
p_values
[
i
].
psz_string
,
"Title"
)
)
root
.
i_int
=
i
;
}
var_Change
(
p_input
,
"title 0"
,
VLC_VAR_FREELIST
,
&
val
,
&
text
);
var_Set
(
p_input
,
"title 0"
,
root
);
}
}
...
...
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