diff libmpdemux/asf_streaming.c @ 12273:711cc5720939

Don't say that a protocol is unsupported if that's not true Patch by adland
author rtognimp
date Sun, 25 Apr 2004 12:41:01 +0000
parents acb8ed9cfe70
children a4f9c64d9d75
line wrap: on
line diff
--- a/libmpdemux/asf_streaming.c	Sun Apr 25 01:51:53 2004 +0000
+++ b/libmpdemux/asf_streaming.c	Sun Apr 25 12:41:01 2004 +0000
@@ -85,6 +85,9 @@
 		if( fd==-2 ) return -1;
 	}
 
+        if (!strncasecmp( proto_s, "mms", 3) ||  !strncasecmp( proto_s, "http", 4) || !strncasecmp( proto_s, "mmst", 4) || !strncasecmp( proto_s, "http_proxy", 10) )
+        mp_msg(MSGT_NETWORK,MSGL_ERR,"Used protocol %s\n",proto_s );
+	else
 	mp_msg(MSGT_NETWORK,MSGL_ERR,"Unknown protocol: %s\n", proto_s );
 	return -1;
 }