mirror of https://github.com/mpv-player/mpv
parent
a3e440c611
commit
8753bd0198
|
@ -270,7 +270,7 @@ static int open_f(stream_t *stream)
|
|||
for (int i = 0; i < sizeof(prefix) / sizeof(prefix[0]); i++)
|
||||
if (!strncmp(filename, prefix[i], strlen(prefix[i])))
|
||||
filename += strlen(prefix[i]);
|
||||
if (!strncmp(filename, "rtsp:", 5)) {
|
||||
if (!strncmp(filename, "rtsp:", 5) || !strncmp(filename, "rtsps:", 6)) {
|
||||
/* This is handled as a special demuxer, without a separate
|
||||
* stream layer. demux_lavf will do all the real work. Note
|
||||
* that libavformat doesn't even provide a protocol entry for
|
||||
|
@ -411,9 +411,9 @@ const stream_info_t stream_info_ffmpeg = {
|
|||
.name = "ffmpeg",
|
||||
.open = open_f,
|
||||
.protocols = (const char *const[]){
|
||||
"rtmp", "rtsp", "http", "https", "mms", "mmst", "mmsh", "mmshttp", "rtp",
|
||||
"httpproxy", "rtmpe", "rtmps", "rtmpt", "rtmpte", "rtmpts", "srt", "srtp",
|
||||
"gopher", "data",
|
||||
"rtmp", "rtsp", "rtsps", "http", "https", "mms", "mmst", "mmsh", "mmshttp",
|
||||
"rtp", "httpproxy", "rtmpe", "rtmps", "rtmpt", "rtmpte", "rtmpts", "srt",
|
||||
"srtp", "gopher", "data",
|
||||
NULL },
|
||||
.can_write = true,
|
||||
.stream_origin = STREAM_ORIGIN_NET,
|
||||
|
|
Loading…
Reference in New Issue