[libdvbpsi-devel] examples/decode_mpeg.c: cleanup
Jean-Paul Saman
git at videolan.org
Wed Apr 16 15:53:35 CEST 2014
libdvbpsi | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Fri Apr 11 18:24:04 2014 +0200| [b36196ed57a424ff6ef2ed2b40890d3bd2230061] | committer: Jean-Paul Saman
examples/decode_mpeg.c: cleanup
> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=b36196ed57a424ff6ef2ed2b40890d3bd2230061
---
examples/decode_mpeg.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/examples/decode_mpeg.c b/examples/decode_mpeg.c
index 01556a8..a6d97e8 100644
--- a/examples/decode_mpeg.c
+++ b/examples/decode_mpeg.c
@@ -573,8 +573,8 @@ int main(int i_argc, char* pa_argv[])
int next_option = 0;
int i_fd = -1;
- int i_mtu = 1316; /* (7 * 188) = 1316 < 1500 network MTU */
#ifdef HAVE_SYS_SOCKET_H
+ int i_mtu = 1316; /* (7 * 188) = 1316 < 1500 network MTU */
int i_report = REPORT_UDP; /* REPORT_PCR REPORT_UDP */
int i_port = 0;
char *ipaddress = NULL;
@@ -636,12 +636,15 @@ int main(int i_argc, char* pa_argv[])
}
} while( next_option != -1 );
-#ifdef HAVE_SYS_SOCKET_H
if( b_verbose )
{
+#ifdef HAVE_SYS_SOCKET_H
fprintf( stderr, "set mtu to %d\n", i_mtu );
- }
+#else
+ fprintf( stderr, "using file: %s", filename);
#endif
+ }
+
/* initialize */
if( filename )
{
More information about the libdvbpsi-devel
mailing list