[FFmpeg-cvslog] r13076 - trunk/cmdutils.c
ramiro
subversion
Thu May 8 02:46:34 CEST 2008
Author: ramiro
Date: Thu May 8 02:46:34 2008
New Revision: 13076
Log:
Compile network-related code conditionally.
Modified:
trunk/cmdutils.c
Modified: trunk/cmdutils.c
==============================================================================
--- trunk/cmdutils.c (original)
+++ trunk/cmdutils.c Thu May 8 02:46:34 2008
@@ -31,7 +31,9 @@
#include "cmdutils.h"
#include "avstring.h"
#include "version.h"
+#ifdef CONFIG_NETWORK
#include "network.h"
+#endif
#undef exit
@@ -181,9 +183,11 @@ void print_error(const char *filename, i
case AVERROR(ENOENT):
fprintf(stderr, "%s: no such file or directory\n", filename);
break;
+#ifdef CONFIG_NETWORK
case AVERROR(FF_NETERROR(EPROTONOSUPPORT)):
fprintf(stderr, "%s: Unsupported network protocol\n", filename);
break;
+#endif
default:
fprintf(stderr, "%s: Error while opening file\n", filename);
break;
More information about the ffmpeg-cvslog
mailing list