OSDN Git Service

Error message for EPROTONOSUPPORT, patch from prossATxvidDoTorg
authorLuca Barbato <lu_zero@gentoo.org>
Thu, 3 Apr 2008 22:16:34 +0000 (22:16 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Thu, 3 Apr 2008 22:16:34 +0000 (22:16 +0000)
Originally committed as revision 12679 to svn://svn.ffmpeg.org/ffmpeg/trunk

cmdutils.c

index 3eb9c18..8333994 100644 (file)
@@ -31,6 +31,7 @@
 #include "cmdutils.h"
 #include "avstring.h"
 #include "version.h"
+#include "network.h"
 
 #undef exit
 
@@ -180,6 +181,9 @@ void print_error(const char *filename, int err)
     case AVERROR(ENOENT):
         fprintf(stderr, "%s: no such file or directory\n", filename);
         break;
+    case AVERROR(FF_NETERROR(EPROTONOSUPPORT)):
+        fprintf(stderr, "%s: Unsupported network protocol\n", filename);
+        break;
     default:
         fprintf(stderr, "%s: Error while opening file\n", filename);
         break;