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
8bb9cc8d
Commit
8bb9cc8d
authored
Mar 05, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
es_out.c: use c99 for
parent
adb694f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
src/input/es_out.c
src/input/es_out.c
+5
-8
No files found.
src/input/es_out.c
View file @
8bb9cc8d
...
...
@@ -417,14 +417,13 @@ static mtime_t EsOutGetWakeup( es_out_t *out )
static
es_out_id_t
*
EsOutGetFromID
(
es_out_t
*
out
,
int
i_id
)
{
int
i
;
if
(
i_id
<
0
)
{
/* Special HACK, -i_id is the cat of the stream */
return
(
es_out_id_t
*
)((
uint8_t
*
)
NULL
-
i_id
);
}
for
(
i
=
0
;
i
<
out
->
p_sys
->
i_es
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
out
->
p_sys
->
i_es
;
i
++
)
{
if
(
out
->
p_sys
->
es
[
i
]
->
i_id
==
i_id
)
return
out
->
p_sys
->
es
[
i
];
...
...
@@ -435,7 +434,6 @@ static es_out_id_t *EsOutGetFromID( es_out_t *out, int i_id )
static
bool
EsOutDecodersIsEmpty
(
es_out_t
*
out
)
{
es_out_sys_t
*
p_sys
=
out
->
p_sys
;
int
i
;
if
(
p_sys
->
b_buffering
&&
p_sys
->
p_pgrm
)
{
...
...
@@ -444,7 +442,7 @@ static bool EsOutDecodersIsEmpty( es_out_t *out )
return
true
;
}
for
(
i
=
0
;
i
<
p_sys
->
i_es
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
p_sys
->
i_es
;
i
++
)
{
es_out_id_t
*
es
=
p_sys
->
es
[
i
];
...
...
@@ -2840,11 +2838,10 @@ static char **LanguageSplit( const char *psz_langs, bool b_default_any )
static
int
LanguageArrayIndex
(
char
**
ppsz_langs
,
char
*
psz_lang
)
{
int
i
;
if
(
!
ppsz_langs
||
!
psz_lang
)
return
-
1
;
if
(
!
ppsz_langs
||
!
psz_lang
)
return
-
1
;
for
(
i
=
0
;
ppsz_langs
[
i
];
i
++
)
for
(
i
nt
i
=
0
;
ppsz_langs
[
i
];
i
++
)
{
if
(
!
strcasecmp
(
ppsz_langs
[
i
],
psz_lang
)
||
!
strcasecmp
(
ppsz_langs
[
i
],
"any"
)
)
...
...
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