Make asf files work again -- the match against the URL was being done incorrectly.
authorPhilip Gladstone <philipjsg@users.sourceforge.net>
Sat, 21 Dec 2002 02:41:22 +0000 (02:41 +0000)
committerPhilip Gladstone <philipjsg@users.sourceforge.net>
Sat, 21 Dec 2002 02:41:22 +0000 (02:41 +0000)
Originally committed as revision 1353 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffserver.c

index 598d47f..d9c8cf9 100644 (file)
@@ -1185,7 +1185,7 @@ static int http_parse_request(HTTPContext *c)
     if (match_ext(filename, "asx")) {
         redir_type = REDIR_ASX;
         filename[strlen(filename)-1] = 'f';
-    } else if (match_ext(filename, ".asf") &&
+    } else if (match_ext(filename, "asf") &&
         (!useragent || strncasecmp(useragent, "NSPlayer", 8) != 0)) {
         /* if this isn't WMP or lookalike, return the redirector file */
         redir_type = REDIR_ASF;