diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-05-06 01:44:57 +0400 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-05-06 01:44:57 +0400 |
commit | 10173c0e58e557582dbd659f42c6aa164a8682db (patch) | |
tree | 0362aa26daf459369de67050608ecb5f2b1e728e /cmdutils.c | |
parent | 735ef67b9d4f4f9b8d6ebc84c56b00cad56f5b8b (diff) |
Simplify print_error(), directly use av_strerror()/strerror() for
printing the error code associated to FF_NETERROR(EPROTONOSUPPORT).
Originally committed as revision 23033 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/cmdutils.c b/cmdutils.c index d02b36e66e..592d52a94a 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) \ |