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
2e81f509
Commit
2e81f509
authored
Feb 07, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/decode_mpeg.c: give usefull information when gettimeofday is not fouund.
parent
f9d35a61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
examples/decode_mpeg.c
examples/decode_mpeg.c
+10
-6
No files found.
examples/decode_mpeg.c
View file @
2e81f509
...
...
@@ -183,6 +183,10 @@ static int ReadPacketFromSocket( int i_socket, uint8_t* p_dst, size_t i_size)
*****************************************************************************/
static
void
report_Header
(
int
i_report
)
{
#ifndef HAVE_GETTIMEOFDAY
printf
(
"*** WARNING: !!! no gettimeofday support found !!! timing information will not be given !!! ***
\n
"
);
#endif
switch
(
i_report
)
{
case
REPORT_PCR
:
...
...
@@ -200,11 +204,7 @@ static void report_Header( int i_report )
*****************************************************************************/
#ifdef HAVE_GETTIMEOFDAY
static
mtime_t
report_UDPPacketTiming
(
int32_t
i_seqno
,
int32_t
bytes
,
mtime_t
time_prev
,
mtime_t
*
time_base
)
#else
static
void
report_UDPPacketTiming
(
int32_t
i_seqno
,
int32_t
bytes
)
#endif
{
#ifdef HAVE_GETTIMEOFDAY
mtime_t
time_current
;
mtime_t
tv_delta
;
struct
timeval
tv
;
...
...
@@ -226,10 +226,14 @@ static void report_UDPPacketTiming( int32_t i_seqno, int32_t bytes )
time_prev
=
time_current
;
printf
(
"%d
\n
"
,
bytes
);
return
time_prev
;
}
#else
printf
(
"
\n
"
);
#endif
static
void
report_UDPPacketTiming
(
int32_t
i_seqno
,
int32_t
bytes
)
{
printf
(
"%.2d %"
PRId64
" %"
PRId64
" "
,
i_seqno
,
0UL
,
0UL
);
printf
(
"%d
\n
"
,
bytes
);
}
#endif
#ifdef HAVE_GETTIMEOFDAY
static
mtime_t
report_PCRPacketTiming
(
int
i_cc
,
ts_pid_t
*
ts_pid
,
...
...
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