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
e53a90f2
Commit
e53a90f2
authored
Jun 25, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ts: set a fourcc for PAT/PMT to avoid garbage in logs.
parent
af0002cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/demux/mpeg/ts.c
modules/demux/mpeg/ts.c
+4
-1
No files found.
modules/demux/mpeg/ts.c
View file @
e53a90f2
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* mpeg_ts.c : Transport Stream input module for vlc
* mpeg_ts.c : Transport Stream input module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* Copyright (C) 2000-2001 VideoLAN
* $Id: ts.c,v 1.2
7 2003/05/31 21:49:12
fenrir Exp $
* $Id: ts.c,v 1.2
8 2003/06/25 19:28:10
fenrir Exp $
*
*
* Authors: Henri Fallon <henri@via.ecp.fr>
* Authors: Henri Fallon <henri@via.ecp.fr>
* Johan Bilien <jobi@via.ecp.fr>
* Johan Bilien <jobi@via.ecp.fr>
...
@@ -218,6 +218,7 @@ static int Activate( vlc_object_t * p_this )
...
@@ -218,6 +218,7 @@ static int Activate( vlc_object_t * p_this )
* The PAT es is indepedent of any program. */
* The PAT es is indepedent of any program. */
p_pat_es
=
input_AddES
(
p_input
,
NULL
,
0x00
,
p_pat_es
=
input_AddES
(
p_input
,
NULL
,
0x00
,
UNKNOWN_ES
,
NULL
,
sizeof
(
es_ts_data_t
)
);
UNKNOWN_ES
,
NULL
,
sizeof
(
es_ts_data_t
)
);
p_pat_es
->
i_fourcc
=
VLC_FOURCC
(
'p'
,
'a'
,
't'
,
' '
);
p_demux_data
=
(
es_ts_data_t
*
)
p_pat_es
->
p_demux_data
;
p_demux_data
=
(
es_ts_data_t
*
)
p_pat_es
->
p_demux_data
;
p_demux_data
->
b_psi
=
1
;
p_demux_data
->
b_psi
=
1
;
p_demux_data
->
i_psi_type
=
PSI_IS_PAT
;
p_demux_data
->
i_psi_type
=
PSI_IS_PAT
;
...
@@ -533,6 +534,7 @@ static void TSDecodePAT( input_thread_t * p_input, es_descriptor_t * p_es )
...
@@ -533,6 +534,7 @@ static void TSDecodePAT( input_thread_t * p_input, es_descriptor_t * p_es )
/* Add the PMT ES to this program */
/* Add the PMT ES to this program */
p_current_es
=
input_AddES
(
p_input
,
p_pgrm
,(
u16
)
i_pmt_pid
,
p_current_es
=
input_AddES
(
p_input
,
p_pgrm
,(
u16
)
i_pmt_pid
,
UNKNOWN_ES
,
NULL
,
sizeof
(
es_ts_data_t
)
);
UNKNOWN_ES
,
NULL
,
sizeof
(
es_ts_data_t
)
);
p_current_es
->
i_fourcc
=
VLC_FOURCC
(
'p'
,
'm'
,
't'
,
' '
);
p_es_demux
=
(
es_ts_data_t
*
)
p_current_es
->
p_demux_data
;
p_es_demux
=
(
es_ts_data_t
*
)
p_current_es
->
p_demux_data
;
p_es_demux
->
b_psi
=
1
;
p_es_demux
->
b_psi
=
1
;
p_es_demux
->
i_psi_type
=
PSI_IS_PMT
;
p_es_demux
->
i_psi_type
=
PSI_IS_PMT
;
...
@@ -1210,6 +1212,7 @@ static void TS_DVBPSI_HandlePAT( input_thread_t * p_input,
...
@@ -1210,6 +1212,7 @@ static void TS_DVBPSI_HandlePAT( input_thread_t * p_input,
p_current_es
=
input_AddES
(
p_input
,
p_new_pgrm
,
p_current_es
=
input_AddES
(
p_input
,
p_new_pgrm
,
(
u16
)
p_pgrm
->
i_pid
,
UNKNOWN_ES
,
(
u16
)
p_pgrm
->
i_pid
,
UNKNOWN_ES
,
NULL
,
sizeof
(
es_ts_data_t
)
);
NULL
,
sizeof
(
es_ts_data_t
)
);
p_current_es
->
i_fourcc
=
VLC_FOURCC
(
'p'
,
'm'
,
't'
,
' '
);
p_es_demux
=
(
es_ts_data_t
*
)
p_current_es
->
p_demux_data
;
p_es_demux
=
(
es_ts_data_t
*
)
p_current_es
->
p_demux_data
;
p_es_demux
->
b_psi
=
1
;
p_es_demux
->
b_psi
=
1
;
p_es_demux
->
i_psi_type
=
PSI_IS_PMT
;
p_es_demux
->
i_psi_type
=
PSI_IS_PMT
;
...
...
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