changeset 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 369073d0f143
children 6fbd0aa81550
files libmpdemux/asf_streaming.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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;
 }