[FFmpeg-cvslog] r23176 - in branches/0.6: . cmdutils.c
siretart
subversion
Wed May 19 10:04:25 CEST 2010
Author: siretart
Date: Wed May 19 10:04:25 2010
New Revision: 23176
Log:
Simplify print_error(), directly use av_strerror()/strerror() for
printing the error code associated to FF_NETERROR(EPROTONOSUPPORT).
backport r23033 by stefano
Modified:
branches/0.6/ (props changed)
branches/0.6/cmdutils.c
Modified: branches/0.6/cmdutils.c
==============================================================================
--- branches/0.6/cmdutils.c Wed May 19 10:03:50 2010 (r23175)
+++ branches/0.6/cmdutils.c Wed May 19 10:04:25 2010 (r23176)
@@ -294,17 +294,9 @@ void print_error(const char *filename, i
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) \
More information about the ffmpeg-cvslog
mailing list