Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
0fde9b2d
Commit
0fde9b2d
authored
Jan 19, 2004
by
Laurent Aimar
Browse files
* all: added a i_id field in es_format_t.
parent
fee32b8e
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/vlc_es.h
View file @
0fde9b2d
...
...
@@ -2,7 +2,7 @@
* vlc_es.h
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: vlc_es.h,v 1.
5
200
3/11/24 02:35:50
fenrir Exp $
* $Id: vlc_es.h,v 1.
6
200
4/01/19 18:15:29
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -107,6 +107,8 @@ struct es_format_t
int
i_cat
;
vlc_fourcc_t
i_codec
;
int
i_id
;
/* -1: let the core mark the right id
>=0: valid id */
int
i_group
;
/* -1 : standalone
>= 0 then a "group" (program) is created
for each value */
...
...
@@ -140,6 +142,7 @@ static inline void es_format_Init( es_format_t *fmt,
{
fmt
->
i_cat
=
i_cat
;
fmt
->
i_codec
=
i_codec
;
fmt
->
i_id
=
-
1
;
fmt
->
i_group
=
0
;
fmt
->
i_priority
=
0
;
fmt
->
psz_language
=
NULL
;
...
...
src/input/es_out.c
View file @
0fde9b2d
...
...
@@ -2,7 +2,7 @@
* es_out.c: Es Out handler for input.
*****************************************************************************
* Copyright (C) 2003-2004 VideoLAN
* $Id: es_out.c,v 1.1
8
2004/01/1
8
1
9:35:48
fenrir Exp $
* $Id: es_out.c,v 1.1
9
2004/01/1
9
1
8:15:29
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -274,13 +274,17 @@ static es_out_id_t *EsOutAdd( es_out_t *out, es_format_t *fmt )
}
}
}
if
(
fmt
->
i_id
<
0
)
{
fmt
->
i_id
=
out
->
p_sys
->
i_id
-
1
;
}
es
->
p_es
=
input_AddES
(
p_input
,
p_prgm
,
ou
t
->
p_sys
->
i_id
,
fm
t
->
i_id
+
1
,
fmt
->
i_cat
,
fmt
->
psz_language
,
0
);
es
->
p_es
->
i_stream_id
=
out
->
p_sys
->
i_id
;
es
->
p_es
->
i_stream_id
=
fmt
->
i_id
;
es
->
p_es
->
i_fourcc
=
fmt
->
i_codec
;
switch
(
fmt
->
i_cat
)
...
...
src/input/input_dec.c
View file @
0fde9b2d
...
...
@@ -2,7 +2,7 @@
* input_dec.c: Functions for the management of decoders
*****************************************************************************
* Copyright (C) 1999-2004 VideoLAN
* $Id: input_dec.c,v 1.8
6
2004/01/1
8 23:52:02 gbazin
Exp $
* $Id: input_dec.c,v 1.8
7
2004/01/1
9 18:15:29 fenrir
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
...
...
@@ -548,6 +548,7 @@ static int DecoderDecode( decoder_t *p_dec, block_t *p_block )
p_dec
->
p_owner
->
sout
.
i_group
=
p_dec
->
p_owner
->
p_es_descriptor
->
p_pgrm
->
i_number
;
}
p_dec
->
p_owner
->
sout
.
i_id
=
p_dec
->
p_owner
->
p_es_descriptor
->
i_id
-
1
;
p_dec
->
p_owner
->
p_sout
=
sout_InputNew
(
p_dec
,
&
p_dec
->
p_owner
->
sout
);
...
...
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