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
7a497c95
Commit
7a497c95
authored
Apr 10, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ts: name registration type
parent
1702e77a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
modules/demux/ts.c
modules/demux/ts.c
+9
-3
No files found.
modules/demux/ts.c
View file @
7a497c95
...
...
@@ -237,6 +237,12 @@ typedef enum
TS_ES_DATA_TABLE_SECTION
}
ts_es_data_type_t
;
typedef
enum
{
TS_REGISTRATION_OTHER
=
0
,
TS_REGISTRATION_HDMV
}
ts_registration_type_t
;
typedef
struct
{
es_format_t
fmt
;
...
...
@@ -3999,7 +4005,7 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_pmt )
SetPIDFilter
(
p_demux
,
prg
->
i_pid_pcr
,
true
);
/* Set demux filter */
/* Parse descriptor */
bool
b_hdmv
=
false
;
ts_registration_type_t
registration_type
=
TS_REGISTRATION_OTHER
;
dvbpsi_descriptor_t
*
p_dr
;
for
(
p_dr
=
p_pmt
->
p_first_descriptor
;
p_dr
!=
NULL
;
p_dr
=
p_dr
->
p_next
)
switch
(
p_dr
->
i_tag
)
...
...
@@ -4023,7 +4029,7 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_pmt )
{
msg_Dbg
(
p_demux
,
" * descriptor : registration %4.4s"
,
p_dr
->
p_data
);
if
(
!
memcmp
(
p_dr
->
p_data
,
"HDMV"
,
4
)
||
!
memcmp
(
p_dr
->
p_data
,
"HDPR"
,
4
)
)
b_hdmv
=
true
;
/* Blu-Ray */
registration_type
=
TS_REGISTRATION_HDMV
;
/* Blu-Ray */
}
break
;
...
...
@@ -4088,7 +4094,7 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_pmt )
{
PMTSetupEs0xA0
(
p_demux
,
pid
,
p_es
);
}
else
if
(
b_hdmv
)
else
if
(
registration_type
==
TS_REGISTRATION_HDMV
)
{
PMTSetupEsHDMV
(
pid
,
p_es
);
}
...
...
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