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
8683f7b7
Commit
8683f7b7
authored
Jan 19, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* all: keep valid i_id.
parent
0fde9b2d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
13 deletions
+10
-13
modules/stream_out/duplicate.c
modules/stream_out/duplicate.c
+7
-12
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+3
-1
No files found.
modules/stream_out/duplicate.c
View file @
8683f7b7
...
...
@@ -2,7 +2,7 @@
* duplicate.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: duplicate.c,v 1.1
0 2004/01/18 03:43:03
fenrir Exp $
* $Id: duplicate.c,v 1.1
1 2004/01/19 18:15:55
fenrir Exp $
*
* Author: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -60,8 +60,6 @@ struct sout_stream_sys_t
int
i_nb_select
;
char
**
ppsz_select
;
int
i_es
;
};
struct
sout_stream_id_t
...
...
@@ -70,7 +68,7 @@ struct sout_stream_id_t
void
**
pp_ids
;
};
static
vlc_bool_t
ESSelected
(
es_format_t
*
fmt
,
char
*
psz_select
,
int
i_es_number
);
static
vlc_bool_t
ESSelected
(
es_format_t
*
fmt
,
char
*
psz_select
);
/*****************************************************************************
* Open:
...
...
@@ -89,7 +87,6 @@ static int Open( vlc_object_t *p_this )
p_sys
->
pp_streams
=
NULL
;
p_sys
->
i_nb_select
=
0
;
p_sys
->
ppsz_select
=
NULL
;
p_sys
->
i_es
=
0
;
for
(
p_cfg
=
p_stream
->
p_cfg
;
p_cfg
!=
NULL
;
p_cfg
=
p_cfg
->
p_next
)
{
...
...
@@ -181,13 +178,13 @@ static sout_stream_id_t * Add( sout_stream_t *p_stream, es_format_t *p_fmt )
msg_Dbg
(
p_stream
,
"duplicated a new stream codec=%4.4s (es=%d group=%d)"
,
(
char
*
)
&
p_fmt
->
i_codec
,
p_
sys
->
i_es
,
p_
fmt
->
i_id
,
p_fmt
->
i_group
);
for
(
i_stream
=
0
;
i_stream
<
p_sys
->
i_nb_streams
;
i_stream
++
)
{
void
*
id_new
=
NULL
;
if
(
ESSelected
(
p_fmt
,
p_sys
->
ppsz_select
[
i_stream
]
,
p_sys
->
i_es
)
)
if
(
ESSelected
(
p_fmt
,
p_sys
->
ppsz_select
[
i_stream
]
)
)
{
sout_stream_t
*
out
=
p_sys
->
pp_streams
[
i_stream
];
...
...
@@ -212,8 +209,6 @@ static sout_stream_id_t * Add( sout_stream_t *p_stream, es_format_t *p_fmt )
TAB_APPEND
(
id
->
i_nb_ids
,
id
->
pp_ids
,
id_new
);
}
p_sys
->
i_es
++
;
if
(
i_valid_streams
<=
0
)
{
Del
(
p_stream
,
id
);
...
...
@@ -317,7 +312,7 @@ static vlc_bool_t NumInRange( char *psz_range, int i_num )
return
i_start
<=
i_num
&&
i_num
<=
i_stop
?
VLC_TRUE
:
VLC_FALSE
;
}
static
vlc_bool_t
ESSelected
(
es_format_t
*
fmt
,
char
*
psz_select
,
int
i_es_number
)
static
vlc_bool_t
ESSelected
(
es_format_t
*
fmt
,
char
*
psz_select
)
{
char
*
psz_dup
;
char
*
psz
;
...
...
@@ -418,14 +413,14 @@ static vlc_bool_t ESSelected( es_format_t *fmt, char *psz_select, int i_es_numbe
{
if
(
i_es
!=
1
)
{
i_es
=
!
NumInRange
(
psz_arg
,
i_es_number
)
?
1
:
0
;
i_es
=
!
NumInRange
(
psz_arg
,
fmt
->
i_id
)
?
1
:
0
;
}
}
else
if
(
!
strcmp
(
psz
,
"es"
)
)
{
if
(
i_es
!=
1
)
{
i_es
=
NumInRange
(
psz_arg
,
i_es_number
)
?
1
:
0
;
i_es
=
NumInRange
(
psz_arg
,
fmt
->
i_id
)
?
1
:
0
;
}
}
else
if
(
!
strcmp
(
psz
,
"no-prgm"
)
||
!
strcmp
(
psz
,
"noprgm"
)
||
...
...
modules/stream_out/transcode.c
View file @
8683f7b7
...
...
@@ -2,7 +2,7 @@
* transcode.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: transcode.c,v 1.
69 2004/01/19 14:40:2
5 fenrir Exp $
* $Id: transcode.c,v 1.
70 2004/01/19 18:15:5
5 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
...
...
@@ -374,6 +374,7 @@ static sout_stream_id_t * Add( sout_stream_t *p_stream, es_format_t *p_fmt )
/* create dst format */
es_format_Init
(
&
id
->
f_dst
,
AUDIO_ES
,
p_sys
->
i_acodec
);
id
->
f_dst
.
i_id
=
id
->
f_src
->
i_id
;
id
->
f_dst
.
i_group
=
id
->
f_src
->
i_group
;
id
->
f_dst
.
audio
.
i_rate
=
p_sys
->
i_sample_rate
>
0
?
p_sys
->
i_sample_rate
:
id
->
f_src
.
audio
.
i_rate
;
id
->
f_dst
.
audio
.
i_channels
=
p_sys
->
i_channels
>
0
?
p_sys
->
i_channels
:
id
->
f_src
.
audio
.
i_channels
;
...
...
@@ -411,6 +412,7 @@ static sout_stream_id_t * Add( sout_stream_t *p_stream, es_format_t *p_fmt )
/* create dst format */
es_format_Init
(
&
id
->
f_dst
,
VIDEO_ES
,
p_sys
->
i_vcodec
);
id
->
f_dst
.
i_id
=
id
->
f_src
->
i_id
;
id
->
f_dst
.
i_group
=
id
->
f_src
->
i_group
;
id
->
f_dst
.
video
.
i_width
=
p_sys
->
i_width
;
id
->
f_dst
.
video
.
i_height
=
p_sys
->
i_height
;
...
...
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