[MPlayer-cvslog] r21582 - trunk/stream/http.c
reimar
subversion at mplayerhq.hu
Sun Dec 10 20:38:41 CET 2006
Author: reimar
Date: Sun Dec 10 20:38:41 2006
New Revision: 21582
Modified:
trunk/stream/http.c
Log:
STREAM_UNSUPPORTED is -1, so use the former for return value in all places.
Thanks to Nicolas Baradakis (nbk sitadelle com) for noticing.
Modified: trunk/stream/http.c
==============================================================================
--- trunk/stream/http.c (original)
+++ trunk/stream/http.c Sun Dec 10 20:38:41 2006
@@ -842,10 +842,8 @@
}
break;
case 401: // Authentication required
- if( http_authenticate(http_hdr, url, &auth_retry)<0 ) {
- res = STREAM_UNSUPORTED;
+ if( http_authenticate(http_hdr, url, &auth_retry)<0 )
goto err_out;
- }
redirect = 1;
break;
default:
@@ -857,7 +855,7 @@
err_out:
if (fd > 0) closesocket( fd );
fd = -1;
- res = -1;
+ res = STREAM_UNSUPORTED;
http_free( http_hdr );
out:
stream->fd = fd;
More information about the MPlayer-cvslog
mailing list