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
a3974c22
Commit
a3974c22
authored
Sep 05, 2008
by
Laurent Aimar
Committed by
Jean-Baptiste Kempf
Sep 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use sub-language as DVD menu (close #1994)
(cherry picked from commit
2221f03d
)
parent
d54c78bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
modules/access/dvdnav.c
modules/access/dvdnav.c
+9
-5
No files found.
modules/access/dvdnav.c
View file @
a3974c22
...
...
@@ -256,15 +256,19 @@ static int Open( vlc_object_t *p_this )
msg_Warn
(
p_demux
,
"cannot set PGC positioning flag"
);
}
/* Set menu language
("en")
* XXX
: maybe it would be better to set it like audio/spu
* or to create a --menu-language option */
if
(
dvdnav_menu_language_select
(
p_sys
->
dvdnav
,
(
char
*
)
LANGUAGE_DEFAULT
)
!=
/* Set menu language
* XXX
A menu-language may be better than sub-language */
psz_code
=
DemuxGetLanguageCode
(
p_demux
,
"sub-language"
);
if
(
dvdnav_menu_language_select
(
p_sys
->
dvdnav
,
psz_code
)
!=
DVDNAV_STATUS_OK
)
{
msg_Warn
(
p_demux
,
"can't set menu language to '%s' (%s)"
,
LANGUAGE_DEFAULT
,
dvdnav_err_to_string
(
p_sys
->
dvdnav
)
);
psz_code
,
dvdnav_err_to_string
(
p_sys
->
dvdnav
)
);
/* We try to fall back to 'en' */
if
(
strcmp
(
psz_code
,
LANGUAGE_DEFAULT
)
)
dvdnav_menu_language_select
(
p_sys
->
dvdnav
,
(
char
*
)
LANGUAGE_DEFAULT
);
}
free
(
psz_code
);
/* Set audio language */
psz_code
=
DemuxGetLanguageCode
(
p_demux
,
"audio-language"
);
...
...
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