Mercurial > mplayer.hg
changeset 21566:79d969f9eec0
STREAM_UNSUPPORTED is -1, so use the former for return value in all places.
Thanks to Nicolas Baradakis (nbk sitadelle com) for noticing.
author | reimar |
---|---|
date | Sun, 10 Dec 2006 19:38:41 +0000 |
parents | 546cf4a6377a |
children | 3cc80f0855e1 |
files | stream/http.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/http.c Sun Dec 10 19:35:39 2006 +0000 +++ b/stream/http.c Sun Dec 10 19:38:41 2006 +0000 @@ -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;