summaryrefslogtreecommitdiffstats
path: root/stream/http.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-10 19:38:41 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-10 19:38:41 +0000
commit6a2fc8dd2cd6224cd2952d3024d1e4a06086410f (patch)
tree8dbdcaa81d823b382663b94e18e81e085d954863 /stream/http.c
parentee08a2d2d37ef356b25d21821658e16c1de82254 (diff)
downloadmpv-6a2fc8dd2cd6224cd2952d3024d1e4a06086410f.tar.bz2
mpv-6a2fc8dd2cd6224cd2952d3024d1e4a06086410f.tar.xz
STREAM_UNSUPPORTED is -1, so use the former for return value in all places.
Thanks to Nicolas Baradakis (nbk sitadelle com) for noticing. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21582 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/http.c')
-rw-r--r--stream/http.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/stream/http.c b/stream/http.c
index ccf75eeba8..3d82ebab92 100644
--- a/stream/http.c
+++ b/stream/http.c
@@ -842,10 +842,8 @@ static int http_streaming_start(stream_t *stream, int* file_format) {
}
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 @@ static int http_streaming_start(stream_t *stream, int* file_format) {
err_out:
if (fd > 0) closesocket( fd );
fd = -1;
- res = -1;
+ res = STREAM_UNSUPORTED;
http_free( http_hdr );
out:
stream->fd = fd;