Commit 10173c0e authored by Stefano Sabatini's avatar Stefano Sabatini

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
parent 735ef67b
......@@ -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) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment