Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
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
libdvbpsi
Commits
539473b9
Commit
539473b9
authored
Feb 17, 2017
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dvbinfo: dump parental rating descriptor
parent
6ed78a23
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
examples/dvbinfo/libdvbpsi.c
examples/dvbinfo/libdvbpsi.c
+17
-0
No files found.
examples/dvbinfo/libdvbpsi.c
View file @
539473b9
...
...
@@ -1392,6 +1392,19 @@ static void DumpContentDescriptor(const void *p_descriptor)
}
}
/*****************************************************************************
* DumpParentalRatingDescriptor
*****************************************************************************/
static
void
DumpParentalRatingDescriptor
(
const
void
*
p_descriptor
)
{
const
dvbpsi_dvb_parental_rating_dr_t
*
p_parental_rating_descriptor
=
p_descriptor
;
printf
(
"Parental ratings
\n
"
);
for
(
int
i
=
0
;
i
<
p_parental_rating_descriptor
->
i_ratings_number
;
i
++
)
{;
printf
(
"
\t
Country : %d
\n
"
,
p_parental_rating_descriptor
->
p_parental_rating
[
i
].
i_country_code
);
printf
(
"
\t
Rating : %d
\n
"
,
p_parental_rating_descriptor
->
p_parental_rating
[
i
].
i_rating
);
}
}
/*****************************************************************************
* DumpSubtitleDescriptor
*****************************************************************************/
...
...
@@ -1983,6 +1996,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor)
p_decoded
=
dvbpsi_decode_dvb_content_dr
(
p_descriptor
);
dump_dr_fn
=
DumpContentDescriptor
;
break
;
case
0x55
:
p_decoded
=
dvbpsi_decode_dvb_parental_rating_dr
(
p_descriptor
);
dump_dr_fn
=
DumpParentalRatingDescriptor
;
break
;
case
0x59
:
p_decoded
=
dvbpsi_decode_dvb_subtitling_dr
(
p_descriptor
);
dump_dr_fn
=
DumpSubtitleDescriptor
;
...
...
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