[MPlayer-cvslog] r38170 - trunk/stream/http.c
al
subversion at mplayerhq.hu
Sun Feb 2 10:17:35 EET 2020
Author: al
Date: Sun Feb 2 10:17:35 2020
New Revision: 38170
Log:
stream/http: Handover redirects-to-HTTPS to other stream modules
As we do not support HTTPS in our stream http module, allow to
smoothly handover the HTTPS location to another stream module.
At this time that other module would probably be stream_ffmpeg.
Before this change we would, e.g. in stream_ffmpeg, start again
at the initial URL and likely follow again all redirects.
Modified:
trunk/stream/http.c
Modified: trunk/stream/http.c
==============================================================================
--- trunk/stream/http.c Sun Feb 2 10:15:13 2020 (r38169)
+++ trunk/stream/http.c Sun Feb 2 10:17:35 2020 (r38170)
@@ -828,7 +828,7 @@ static int http_streaming_start(stream_t
if( next_url!=NULL ) {
int is_ultravox = strcasecmp(stream->streaming_ctrl->url->protocol, "unsv") == 0;
stream->streaming_ctrl->url = url_redirect( &url, next_url );
- if (url_is_protocol(url, "mms")) {
+ if (url_is_protocol(url, "https") || url_is_protocol(url, "mms")) {
res = STREAM_REDIRECTED;
goto err_out;
}
More information about the MPlayer-cvslog
mailing list