Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
0acbca23
Commit
0acbca23
authored
Jul 11, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/stream_out/duplicate.c: Fixed ES selection when using both
program= and es= for the same destination.
parent
7f48ee3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
18 deletions
+17
-18
modules/stream_out/duplicate.c
modules/stream_out/duplicate.c
+17
-18
No files found.
modules/stream_out/duplicate.c
View file @
0acbca23
...
...
@@ -362,7 +362,7 @@ static vlc_bool_t ESSelected( es_format_t *fmt, char *psz_select )
if
(
!
strncmp
(
psz
,
"no-audio"
,
strlen
(
"no-audio"
)
)
||
!
strncmp
(
psz
,
"noaudio"
,
strlen
(
"noaudio"
)
)
)
{
if
(
i_cat
!=
1
)
if
(
i_cat
==
-
1
)
{
i_cat
=
fmt
->
i_cat
!=
AUDIO_ES
?
1
:
0
;
}
...
...
@@ -370,7 +370,7 @@ static vlc_bool_t ESSelected( es_format_t *fmt, char *psz_select )
else
if
(
!
strncmp
(
psz
,
"no-video"
,
strlen
(
"no-video"
)
)
||
!
strncmp
(
psz
,
"novideo"
,
strlen
(
"novideo"
)
)
)
{
if
(
i_cat
!=
1
)
if
(
i_cat
==
-
1
)
{
i_cat
=
fmt
->
i_cat
!=
VIDEO_ES
?
1
:
0
;
}
...
...
@@ -378,28 +378,28 @@ static vlc_bool_t ESSelected( es_format_t *fmt, char *psz_select )
else
if
(
!
strncmp
(
psz
,
"no-spu"
,
strlen
(
"no-spu"
)
)
||
!
strncmp
(
psz
,
"nospu"
,
strlen
(
"nospu"
)
)
)
{
if
(
i_cat
!=
1
)
if
(
i_cat
==
-
1
)
{
i_cat
=
fmt
->
i_cat
!=
SPU_ES
?
1
:
0
;
}
}
else
if
(
!
strncmp
(
psz
,
"audio"
,
strlen
(
"audio"
)
)
)
{
if
(
i_cat
!=
1
)
if
(
i_cat
==
-
1
)
{
i_cat
=
fmt
->
i_cat
==
AUDIO_ES
?
1
:
0
;
}
}
else
if
(
!
strncmp
(
psz
,
"video"
,
strlen
(
"video"
)
)
)
{
if
(
i_cat
!=
1
)
if
(
i_cat
==
-
1
)
{
i_cat
=
fmt
->
i_cat
==
VIDEO_ES
?
1
:
0
;
}
}
else
if
(
!
strncmp
(
psz
,
"spu"
,
strlen
(
"spu"
)
)
)
{
if
(
i_cat
!=
1
)
if
(
i_cat
==
-
1
)
{
i_cat
=
fmt
->
i_cat
==
SPU_ES
?
1
:
0
;
}
...
...
@@ -411,31 +411,31 @@ static vlc_bool_t ESSelected( es_format_t *fmt, char *psz_select )
if
(
!
strcmp
(
psz
,
"no-es"
)
||
!
strcmp
(
psz
,
"noes"
)
)
{
if
(
i_es
!=
1
)
if
(
i_es
==
-
1
)
{
i_es
=
!
NumInRange
(
psz_arg
,
fmt
->
i_id
)
?
1
:
0
;
i_es
=
NumInRange
(
psz_arg
,
fmt
->
i_id
)
?
0
:
-
1
;
}
}
else
if
(
!
strcmp
(
psz
,
"es"
)
)
{
if
(
i_es
!=
1
)
if
(
i_es
==
-
1
)
{
i_es
=
NumInRange
(
psz_arg
,
fmt
->
i_id
)
?
1
:
0
;
i_es
=
NumInRange
(
psz_arg
,
fmt
->
i_id
)
?
1
:
-
1
;
}
}
else
if
(
!
strcmp
(
psz
,
"no-prgm"
)
||
!
strcmp
(
psz
,
"noprgm"
)
||
!
strcmp
(
psz
,
"no-program"
)
||
!
strcmp
(
psz
,
"noprogram"
)
)
{
if
(
fmt
->
i_group
>=
0
&&
i_prgm
!=
1
)
if
(
fmt
->
i_group
>=
0
&&
i_prgm
==
-
1
)
{
i_prgm
=
!
NumInRange
(
psz_arg
,
fmt
->
i_group
)
?
1
:
0
;
i_prgm
=
NumInRange
(
psz_arg
,
fmt
->
i_group
)
?
0
:
-
1
;
}
}
else
if
(
!
strcmp
(
psz
,
"prgm"
)
||
!
strcmp
(
psz
,
"program"
)
)
{
if
(
fmt
->
i_group
>=
0
&&
i_prgm
!=
1
)
if
(
fmt
->
i_group
>=
0
&&
i_prgm
==
-
1
)
{
i_prgm
=
NumInRange
(
psz_arg
,
fmt
->
i_group
)
?
1
:
0
;
i_prgm
=
NumInRange
(
psz_arg
,
fmt
->
i_group
)
?
1
:
-
1
;
}
}
}
...
...
@@ -449,10 +449,9 @@ static vlc_bool_t ESSelected( es_format_t *fmt, char *psz_select )
free
(
psz_dup
);
if
(
i_cat
==
0
||
i_es
==
0
||
i_prgm
==
0
)
if
(
i_cat
==
1
||
i_es
==
1
||
i_prgm
==
1
)
{
/* One test failed */
return
VLC_FALSE
;
return
VLC_TRUE
;
}
return
VLC_
TRU
E
;
return
VLC_
FALS
E
;
}
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