mirror of
https://github.com/mpv-player/mpv
synced 2025-01-30 11:42:04 +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;
|
break;
|
||||||
case 401: // Authentication required
|
case 401: // Authentication required
|
||||||
if( http_authenticate(http_hdr, url, &auth_retry)<0 ) {
|
if( http_authenticate(http_hdr, url, &auth_retry)<0 )
|
||||||
res = STREAM_UNSUPORTED;
|
|
||||||
goto err_out;
|
goto err_out;
|
||||||
}
|
|
||||||
redirect = 1;
|
redirect = 1;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -857,7 +855,7 @@ static int http_streaming_start(stream_t *stream, int* file_format) {
|
|||||||
err_out:
|
err_out:
|
||||||
if (fd > 0) closesocket( fd );
|
if (fd > 0) closesocket( fd );
|
||||||
fd = -1;
|
fd = -1;
|
||||||
res = -1;
|
res = STREAM_UNSUPORTED;
|
||||||
http_free( http_hdr );
|
http_free( http_hdr );
|
||||||
out:
|
out:
|
||||||
stream->fd = fd;
|
stream->fd = fd;
|
||||||
|
Loading…
Reference in New Issue
Block a user