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
09aa8971
Commit
09aa8971
authored
Aug 24, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/decode_mpeg.c: i_report undefined if HAVE_SYS_SOCKET_H is not defined.
parent
88185c53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
examples/decode_mpeg.c
examples/decode_mpeg.c
+6
-2
No files found.
examples/decode_mpeg.c
View file @
09aa8971
...
...
@@ -702,6 +702,7 @@ int main(int i_argc, char* pa_argv[])
vlc_bool_t
b_adaptation
=
(
p_tmp
[
3
]
&
0x20
);
/* adaptation field */
vlc_bool_t
b_discontinuity_seen
=
VLC_FALSE
;
#ifdef HAVE_SYS_SOCKET_H
if
(
i_report
==
REPORT_UDP
&&
!
b_first
)
{
#ifdef HAVE_GETTIMEOFDAY
...
...
@@ -711,7 +712,7 @@ int main(int i_argc, char* pa_argv[])
#endif
b_first
=
VLC_TRUE
;
}
#endif
if
(
p_data
[
i
]
!=
0x47
)
/* no sync skip this packet */
{
fprintf
(
stderr
,
"Missing TS sync word, skipping 188 bytes
\n
"
);
...
...
@@ -772,6 +773,7 @@ int main(int i_argc, char* pa_argv[])
i_prev_pcr
=
p_stream
->
pid
[
i_pid
].
i_pcr
;
p_stream
->
pid
[
i_pid
].
i_pcr
=
i_pcr
;
#ifdef HAVE_SYS_SOCKET_H
if
(
i_report
==
REPORT_PCR
)
{
#ifdef HAVE_GETTIMEOFDAY
...
...
@@ -780,6 +782,7 @@ int main(int i_argc, char* pa_argv[])
report_PCRPacketTiming
(
i_cc
,
&
(
p_stream
->
pid
[
i_pid
]),
i_prev_pcr
,
i_bytes
);
#endif
}
#endif
i_bytes
=
0
;
/* reset byte counter */
if
(
b_discontinuity_indicator
)
...
...
@@ -801,9 +804,10 @@ int main(int i_argc, char* pa_argv[])
}
}
#ifdef HAVE_SYS_SOCKET_H
if
(
i_report
==
REPORT_UDP
)
i_bytes
=
0
;
/* reset byte counter */
#endif
/* Read next packet */
if
(
filename
)
i_len
=
ReadPacket
(
i_fd
,
p_data
);
...
...
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