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
This commit is contained in:
reimar 2006-12-10 19:38:41 +00:00
parent ee08a2d2d3
commit 6a2fc8dd2c
1 changed files with 2 additions and 4 deletions

View File

@ -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;