mirror of
https://github.com/mpv-player/mpv
synced 2025-01-29 19:22:48 +00:00
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:
parent
ee08a2d2d3
commit
6a2fc8dd2c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user