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
0a40ad27
Commit
0a40ad27
authored
Aug 24, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
example/decode_mpeg.c: i_report is undeclared if HAVE_SYS_SOCKET_H is undefined.
parent
d565a849
Changes
1
Hide 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 @
0a40ad27
...
...
@@ -652,6 +652,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
...
...
@@ -661,7 +662,7 @@ int main(int i_argc, char* pa_argv[])
#endif
b_first
=
VLC_TRUE
;
}
#endif
if
(
i_pid
==
0x0
)
dvbpsi_PushPacket
(
p_stream
->
pat
.
handle
,
p_tmp
);
else
if
(
p_stream
->
pmt
.
pid_pmt
&&
i_pid
==
p_stream
->
pmt
.
pid_pmt
->
i_pid
)
...
...
@@ -713,6 +714,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
...
...
@@ -721,6 +723,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_seen
)
...
...
@@ -742,9 +745,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