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
5c805b82
Commit
5c805b82
authored
Aug 12, 2013
by
Petri Hintukainen
Committed by
Rafaël Carré
Aug 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added an option for DVD/BluRay menu language
Signed-off-by:
Rafaël Carré
<
funman@videolan.org
>
parent
360ad295
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
modules/access/dvdnav.c
modules/access/dvdnav.c
+2
-3
src/input/var.c
src/input/var.c
+2
-0
src/libvlc-module.c
src/libvlc-module.c
+9
-0
No files found.
modules/access/dvdnav.c
View file @
5c805b82
...
...
@@ -282,9 +282,8 @@ static int Open( vlc_object_t *p_this )
msg_Warn
(
p_demux
,
"cannot set PGC positioning flag"
);
}
/* Set menu language
* XXX A menu-language may be better than sub-language */
psz_code
=
DemuxGetLanguageCode
(
p_demux
,
"sub-language"
);
/* Set menu language */
psz_code
=
DemuxGetLanguageCode
(
p_demux
,
"menu-language"
);
if
(
dvdnav_menu_language_select
(
p_sys
->
dvdnav
,
psz_code
)
!=
DVDNAV_STATUS_OK
)
{
...
...
src/input/var.c
View file @
5c805b82
...
...
@@ -429,6 +429,8 @@ void input_ConfigVarInit ( input_thread_t *p_input )
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_input
,
"sub-language"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_input
,
"menu-language"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_input
,
"audio-track-id"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
...
...
src/libvlc-module.c
View file @
5c805b82
...
...
@@ -595,6 +595,11 @@ static const char *const ppsz_clock_descriptions[] =
"Language of the subtitle track you want to use " \
"(comma separated, two or three letters country code, you may use 'any' as a fallback).")
#define INPUT_MENUTRACK_LANG_TEXT N_("Menu language")
#define INPUT_MENUTRACK_LANG_LONGTEXT N_( \
"Language of the menus you want to use with DVD/BluRay " \
"(comma separated, two or three letters country code, you may use 'any' as a fallback).")
/// \todo Document how to find it
#define INPUT_AUDIOTRACK_ID_TEXT N_("Audio track ID")
#define INPUT_AUDIOTRACK_ID_LONGTEXT N_( \
...
...
@@ -1688,6 +1693,10 @@ vlc_module_begin ()
INPUT_SUBTRACK_LANG_TEXT
,
INPUT_SUBTRACK_LANG_LONGTEXT
,
false
)
change_safe
()
add_string
(
"menu-language"
,
""
,
INPUT_MENUTRACK_LANG_TEXT
,
INPUT_MENUTRACK_LANG_LONGTEXT
,
false
)
change_safe
()
add_integer
(
"audio-track-id"
,
-
1
,
INPUT_AUDIOTRACK_ID_TEXT
,
INPUT_AUDIOTRACK_ID_LONGTEXT
,
true
)
change_safe
()
...
...
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