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
aef00257
Commit
aef00257
authored
Sep 19, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed audio/spu language selection when none specified in dvdnav.
parent
1ada19aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
modules/access/dvdnav.c
modules/access/dvdnav.c
+7
-1
No files found.
modules/access/dvdnav.c
View file @
aef00257
...
...
@@ -859,12 +859,18 @@ static char *DemuxGetLanguageCode( demux_t *p_demux, const char *psz_var )
char
*
p
;
psz_lang
=
var_CreateGetString
(
p_demux
,
psz_var
);
if
(
!
psz_lang
)
return
strdup
(
LANGUAGE_DEFAULT
);
/* XXX: we will use only the first value
* (and ignore other ones in case of a list) */
if
(
(
p
=
strchr
(
psz_lang
,
','
)
)
)
*
p
=
'\0'
;
if
(
(
p
=
strchr
(
psz_lang
,
','
)
)
)
*
p
=
'\0'
;
for
(
pl
=
p_languages
;
pl
->
psz_iso639_1
!=
NULL
;
pl
++
)
{
if
(
*
psz_lang
==
'\0'
)
continue
;
if
(
!
strcasecmp
(
pl
->
psz_eng_name
,
psz_lang
)
||
!
strcasecmp
(
pl
->
psz_native_name
,
psz_lang
)
||
!
strcasecmp
(
pl
->
psz_iso639_1
,
psz_lang
)
||
...
...
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