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
Sergio Ammirata
bitstream
Commits
55927734
Commit
55927734
authored
Apr 10, 2018
by
Christophe Massiot
Browse files
Merge branch 'funman-master'
parents
7c95838c
595b1b14
Changes
1
Hide whitespace changes
Inline
Side-by-side
dvb/si/eit_print.h
View file @
55927734
...
...
@@ -98,32 +98,31 @@ static inline void eit_print(uint8_t *p_eit,
while
((
p_event
=
eit_get_event
(
p_eit
,
j
))
!=
NULL
)
{
j
++
;
char
start_str
[
24
]
,
duration_str
[
10
]
;
char
start_str
[
24
];
int
duration
,
hour
,
min
,
sec
;
time_t
start_ts
;
start_ts
=
dvb_time_format_UTC
(
eitn_get_start_time
(
p_event
),
NULL
,
start_str
);
dvb_time_decode_bcd
(
eitn_get_duration_bcd
(
p_event
),
&
duration
,
&
hour
,
&
min
,
&
sec
);
sprintf
(
duration_str
,
"%02d:%02d:%02d"
,
hour
,
min
,
sec
);
switch
(
i_print_type
)
{
case
PRINT_XML
:
pf_print
(
print_opaque
,
"<EVENT id=
\"
%u
\"
start_time=
\"
%ld
\"
start_time_dec=
\"
%s
\"
"
" duration=
\"
%u
\"
duration_dec=
\"
%
s
\"
"
" duration=
\"
%u
\"
duration_dec=
\"
%
u:%02u:%02u
\"
"
" running=
\"
%d
\"
free_CA=
\"
%d
\"
>"
,
eitn_get_event_id
(
p_event
),
start_ts
,
start_str
,
duration
,
duration_str
,
duration
,
hour
,
min
,
sec
,
eitn_get_running
(
p_event
),
eitn_get_ca
(
p_event
)
);
break
;
default:
pf_print
(
print_opaque
,
" * EVENT id=%u start_time=%ld start_time_dec=
\"
%s
\"
duration=%u duration_dec=%
s
running=%d free_CA=%d"
,
pf_print
(
print_opaque
,
" * EVENT id=%u start_time=%ld start_time_dec=
\"
%s
\"
duration=%u duration_dec=%
u:%02u:%02u
running=%d free_CA=%d"
,
eitn_get_event_id
(
p_event
),
start_ts
,
start_str
,
duration
,
duration_str
,
duration
,
hour
,
min
,
sec
,
eitn_get_running
(
p_event
),
eitn_get_ca
(
p_event
)
);
...
...
Write
Preview
Supports
Markdown
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