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
cc32b9ff
Commit
cc32b9ff
authored
Nov 09, 2005
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prettying the printfs in verbose mode.
parent
ad961fda
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
examples/decode_mpeg.c
examples/decode_mpeg.c
+6
-3
No files found.
examples/decode_mpeg.c
View file @
cc32b9ff
...
...
@@ -493,6 +493,9 @@ int main(int i_argc, char* pa_argv[])
#ifdef HAVE_SYS_SOCKET_H
else
b_ok
=
ReadPacketFromSocket
(
i_fd
,
p_data
,
i_mtu
);
if
(
b_verbose
)
printf
(
"network (ms), PCR value (ms), PCR prev (ms), delta (ms)
\n
"
);
#endif
/* Enter infinite loop */
...
...
@@ -572,15 +575,15 @@ int main(int i_argc, char* pa_argv[])
gettimeofday
(
&
tv
,
NULL
);
time_current
=
(
tv
.
tv_sec
*
1000
)
+
(
tv
.
tv_usec
/
1000
);
tv_delta
=
time_current
-
time_prev
;
printf
(
"arrival %.
3ld ms
"
,
(
long
)
tv_delta
);
printf
(
"arrival %.
2ld,
"
,
(
long
)
tv_delta
);
time_prev
=
time_current
;
}
if
(
i_delta
<
0
)
printf
(
"value %lld previous %lld, delta %lld
\n
"
,
printf
(
"value %lld
,
previous %lld, delta %lld
\n
"
,
(
long
long
int
)
p_stream
->
pid
[
i_pid
].
i_pcr
,
(
long
long
int
)
i_prev_pcr
,
(
long
long
int
)
i_delta
);
else
if
(
b_verbose
)
printf
(
"value %lld previous %lld, delta %lld
\n
"
,
printf
(
"value %lld
,
previous %lld, delta %lld
\n
"
,
(
long
long
int
)
p_stream
->
pid
[
i_pid
].
i_pcr
,
(
long
long
int
)
i_prev_pcr
,
(
long
long
int
)
i_delta
);
}
...
...
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