mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-29 08:19:48 +02:00
lavf/avio: Print https warning also for avio_find_protocol_name().
Helps to fix ticket #8197.
This commit is contained in:
parent
3bb170e530
commit
a650e8c8e9
@ -283,6 +283,9 @@ static const struct URLProtocol *url_find_protocol(const char *filename)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
av_freep(&protocols);
|
av_freep(&protocols);
|
||||||
|
if (av_strstart(filename, "https:", NULL) || av_strstart(filename, "tls:", NULL))
|
||||||
|
av_log(NULL, AV_LOG_WARNING, "https protocol not found, recompile FFmpeg with "
|
||||||
|
"openssl, gnutls or securetransport enabled.\n");
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -297,10 +300,6 @@ int ffurl_alloc(URLContext **puc, const char *filename, int flags,
|
|||||||
return url_alloc_for_protocol(puc, p, filename, flags, int_cb);
|
return url_alloc_for_protocol(puc, p, filename, flags, int_cb);
|
||||||
|
|
||||||
*puc = NULL;
|
*puc = NULL;
|
||||||
if (av_strstart(filename, "https:", NULL) || av_strstart(filename, "tls:", NULL))
|
|
||||||
av_log(NULL, AV_LOG_WARNING, "https protocol not found, recompile FFmpeg with "
|
|
||||||
"openssl, gnutls "
|
|
||||||
"or securetransport enabled.\n");
|
|
||||||
return AVERROR_PROTOCOL_NOT_FOUND;
|
return AVERROR_PROTOCOL_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user