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
327782b2
Commit
327782b2
authored
Nov 21, 2007
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* sec/input/es_out.c: Add suport for keyword 'any' in lists of languages ;
also fix a memory leak.
parent
f4dea899
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
src/input/es_out.c
src/input/es_out.c
+21
-4
No files found.
src/input/es_out.c
View file @
327782b2
...
...
@@ -1963,11 +1963,22 @@ static char **LanguageSplit( const char *psz_langs )
psz
=
strchr
(
psz_parser
,
','
);
if
(
psz
)
*
psz
++
=
'\0'
;
if
(
!
strcmp
(
psz_parser
,
"any"
)
)
{
TAB_APPEND
(
i_psz
,
ppsz
,
strdup
(
"any"
)
);
}
else
{
psz_code
=
LanguageGetCode
(
psz_parser
);
if
(
strcmp
(
psz_code
,
"??"
)
)
{
TAB_APPEND
(
i_psz
,
ppsz
,
psz_code
);
}
else
{
free
(
psz_code
);
}
}
psz_parser
=
psz
;
}
...
...
@@ -1988,7 +1999,13 @@ static int LanguageArrayIndex( char **ppsz_langs, char *psz_lang )
if
(
!
ppsz_langs
||
!
psz_lang
)
return
-
1
;
for
(
i
=
0
;
ppsz_langs
[
i
];
i
++
)
if
(
!
strcasecmp
(
ppsz_langs
[
i
],
psz_lang
)
)
return
i
;
{
if
(
!
strcasecmp
(
ppsz_langs
[
i
],
psz_lang
)
||
!
strcasecmp
(
ppsz_langs
[
i
],
"any"
)
)
{
return
i
;
}
}
return
-
1
;
}
...
...
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