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
57e0c551
Commit
57e0c551
authored
Jan 18, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* duplicate: corrected behavour of no-*.
parent
434eb090
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
17 deletions
+12
-17
modules/stream_out/duplicate.c
modules/stream_out/duplicate.c
+12
-17
No files found.
modules/stream_out/duplicate.c
View file @
57e0c551
...
...
@@ -2,7 +2,7 @@
* duplicate.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: duplicate.c,v 1.
9 2004/01/18 02:20:28
fenrir Exp $
* $Id: duplicate.c,v 1.
10 2004/01/18 03:43:03
fenrir Exp $
*
* Author: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -367,28 +367,25 @@ static vlc_bool_t ESSelected( es_format_t *fmt, char *psz_select, int i_es_numbe
if
(
!
strncmp
(
psz
,
"no-audio"
,
strlen
(
"no-audio"
)
)
||
!
strncmp
(
psz
,
"noaudio"
,
strlen
(
"noaudio"
)
)
)
{
if
(
fmt
->
i_cat
==
AUDIO_ES
)
if
(
i_cat
!=
1
)
{
i_cat
=
0
;
break
;
i_cat
=
fmt
->
i_cat
!=
AUDIO_ES
?
1
:
0
;
}
}
else
if
(
!
strncmp
(
psz
,
"no-video"
,
strlen
(
"no-video"
)
)
||
!
strncmp
(
psz
,
"novideo"
,
strlen
(
"novideo"
)
)
)
{
if
(
fmt
->
i_cat
==
VIDEO_ES
)
if
(
i_cat
!=
1
)
{
i_cat
=
0
;
break
;
i_cat
=
fmt
->
i_cat
!=
VIDEO_ES
?
1
:
0
;
}
}
else
if
(
!
strncmp
(
psz
,
"no-spu"
,
strlen
(
"no-spu"
)
)
||
!
strncmp
(
psz
,
"nospu"
,
strlen
(
"nospu"
)
)
)
{
if
(
fmt
->
i_cat
==
SPU_ES
)
if
(
i_cat
!=
1
)
{
i_cat
=
0
;
break
;
i_cat
=
fmt
->
i_cat
!=
SPU_ES
?
1
:
0
;
}
}
else
if
(
!
strncmp
(
psz
,
"audio"
,
strlen
(
"audio"
)
)
)
...
...
@@ -419,10 +416,9 @@ static vlc_bool_t ESSelected( es_format_t *fmt, char *psz_select, int i_es_numbe
if
(
!
strcmp
(
psz
,
"no-es"
)
||
!
strcmp
(
psz
,
"es"
)
)
{
if
(
!
NumInRange
(
psz_arg
,
i_es_number
)
)
if
(
i_es
!=
1
)
{
i_es
=
0
;
break
;
i_es
=
!
NumInRange
(
psz_arg
,
i_es_number
)
?
1
:
0
;
}
}
else
if
(
!
strcmp
(
psz
,
"es"
)
)
...
...
@@ -435,13 +431,12 @@ static vlc_bool_t ESSelected( es_format_t *fmt, char *psz_select, int i_es_numbe
else
if
(
!
strcmp
(
psz
,
"no-prgm"
)
||
!
strcmp
(
psz
,
"noprgm"
)
||
!
strcmp
(
psz
,
"no-program"
)
||
!
strcmp
(
psz
,
"noprogram"
)
)
{
if
(
fmt
->
i_group
>=
0
&&
!
NumInRange
(
psz_arg
,
fmt
->
i_group
)
)
if
(
fmt
->
i_group
>=
0
&&
i_prgm
!=
1
)
{
i_prgm
=
0
;
break
;
i_prgm
=
!
NumInRange
(
psz_arg
,
fmt
->
i_group
)
?
1
:
0
;
}
}
else
if
(
!
strcmp
(
psz
,
"pr
ogra
m"
)
||
!
strcmp
(
psz
,
"program"
)
)
else
if
(
!
strcmp
(
psz
,
"pr
g
m"
)
||
!
strcmp
(
psz
,
"program"
)
)
{
if
(
fmt
->
i_group
>=
0
&&
i_prgm
!=
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