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
27d1c356
Commit
27d1c356
authored
Jul 14, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a segfault after iso639_lang_t p_languages API breakage.
parent
dc5be237
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/input/es_out.c
src/input/es_out.c
+3
-3
No files found.
src/input/es_out.c
View file @
27d1c356
...
...
@@ -2578,7 +2578,7 @@ static char *LanguageGetCode( const char *psz_lang )
if
(
psz_lang
==
NULL
||
*
psz_lang
==
'\0'
)
return
strdup
(
"??"
);
for
(
pl
=
p_languages
;
pl
->
psz_
iso639_1
!=
NULL
;
pl
++
)
for
(
pl
=
p_languages
;
pl
->
psz_
eng_name
!=
NULL
;
pl
++
)
{
if
(
!
strcasecmp
(
pl
->
psz_eng_name
,
psz_lang
)
||
!
strcasecmp
(
pl
->
psz_native_name
,
psz_lang
)
||
...
...
@@ -2588,8 +2588,8 @@ static char *LanguageGetCode( const char *psz_lang )
break
;
}
if
(
pl
->
psz_
iso639_1
!=
NULL
)
return
strdup
(
pl
->
psz_
iso639_1
);
if
(
pl
->
psz_
eng_name
!=
NULL
)
return
strdup
(
pl
->
psz_
eng_name
);
return
strdup
(
"??"
);
}
...
...
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