[FFmpeg-devel] [PATCH 4/6] Simplify print_error(), directly use av_strerror()/strerror() for printing the error code associated to FF_NETERROR(EPROTONOSUPPORT).

Stefano Sabatini stefano.sabatini-lala
Wed May 5 00:40:11 CEST 2010


---
 cmdutils.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/cmdutils.c b/cmdutils.c
index d02b36e..592d52a 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -294,17 +294,9 @@ void print_error(const char *filename, int err)
     char errbuf[128];
     const char *errbuf_ptr = errbuf;
 
-    switch(err) {
-#if CONFIG_NETWORK
-    case FF_NETERROR(EPROTONOSUPPORT):
-        fprintf(stderr, "%s: Unsupported network protocol\n", filename);
-        break;
-#endif
-    default:
         if (av_strerror(err, errbuf, sizeof(errbuf)) < 0)
             errbuf_ptr = strerror(AVUNERROR(err));
         fprintf(stderr, "%s: %s\n", filename, errbuf_ptr);
-    }
 }
 
 #define PRINT_LIB_VERSION(outstream,libname,LIBNAME,indent)             \
-- 
1.7.0




More information about the ffmpeg-devel mailing list