[MPlayer-cvslog] r38169 - trunk/stream/stream_ffmpeg.c

al subversion at mplayerhq.hu
Sun Feb 2 10:15:14 EET 2020


Author: al
Date: Sun Feb  2 10:15:13 2020
New Revision: 38169

Log:
stream_ffmpeg: Handle HTTP protocol too

This change doesn't usually affect the stream module choice for http,
because the other http handling protocols will be tried first.

Making stream_ffmpeg handle http too, particularly fixes the use case
where a http connection redirects to an https URL.

While a redirect from http to https will be handled by stream_ffmpeg
now, the reversed redirect from https to http will not be handled by
the other stream modules in MPlayer because FFmpeg's http(s) client
handles redirects internally.

Modified:
   trunk/stream/stream_ffmpeg.c

Modified: trunk/stream/stream_ffmpeg.c
==============================================================================
--- trunk/stream/stream_ffmpeg.c	Sat Feb  1 02:53:02 2020	(r38168)
+++ trunk/stream/stream_ffmpeg.c	Sun Feb  2 10:15:13 2020	(r38169)
@@ -158,7 +158,7 @@ const stream_info_t stream_info_ffmpeg =
   "",
   "",
   open_f,
-  { "ffmpeg", "rtmp", "rtsp", "https", "gopher", NULL },
+  { "ffmpeg", "rtmp", "rtsp", "http", "https", "gopher", NULL },
   NULL,
   1 // Urls are an option string
 };


More information about the MPlayer-cvslog mailing list