Commit 1c60956c authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'c7e044c6'

* commit 'c7e044c6':
  lavf: remove disabled FF_API_APPLEHTTP_PROTO cruft

Conflicts:
	libavformat/allformats.c
	libavformat/version.h
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents ac45921a c7e044c6
...@@ -300,9 +300,6 @@ void av_register_all(void) ...@@ -300,9 +300,6 @@ void av_register_all(void)
REGISTER_MUXDEMUX(YUV4MPEGPIPE, yuv4mpegpipe); REGISTER_MUXDEMUX(YUV4MPEGPIPE, yuv4mpegpipe);
/* protocols */ /* protocols */
#if FF_API_APPLEHTTP_PROTO
REGISTER_PROTOCOL(APPLEHTTP, applehttp);
#endif
REGISTER_PROTOCOL(BLURAY, bluray); REGISTER_PROTOCOL(BLURAY, bluray);
REGISTER_PROTOCOL(CACHE, cache); REGISTER_PROTOCOL(CACHE, cache);
REGISTER_PROTOCOL(CONCAT, concat); REGISTER_PROTOCOL(CONCAT, concat);
......
...@@ -204,19 +204,6 @@ static int hls_open(URLContext *h, const char *uri, int flags) ...@@ -204,19 +204,6 @@ static int hls_open(URLContext *h, const char *uri, int flags)
nested_url); nested_url);
ret = AVERROR(EINVAL); ret = AVERROR(EINVAL);
goto fail; goto fail;
#if FF_API_APPLEHTTP_PROTO
} else if (av_strstart(uri, "applehttp+", &nested_url)) {
av_strlcpy(s->playlisturl, nested_url, sizeof(s->playlisturl));
av_log(h, AV_LOG_WARNING,
"The applehttp protocol is deprecated, use hls+%s as url "
"instead.\n", nested_url);
} else if (av_strstart(uri, "applehttp://", &nested_url)) {
av_strlcpy(s->playlisturl, "http://", sizeof(s->playlisturl));
av_strlcat(s->playlisturl, nested_url, sizeof(s->playlisturl));
av_log(h, AV_LOG_WARNING,
"The applehttp protocol is deprecated, use hls+http://%s as url "
"instead.\n", nested_url);
#endif
} else { } else {
av_log(h, AV_LOG_ERROR, "Unsupported url %s\n", uri); av_log(h, AV_LOG_ERROR, "Unsupported url %s\n", uri);
ret = AVERROR(EINVAL); ret = AVERROR(EINVAL);
...@@ -326,17 +313,6 @@ retry: ...@@ -326,17 +313,6 @@ retry:
goto start; goto start;
} }
#if FF_API_APPLEHTTP_PROTO
URLProtocol ff_applehttp_protocol = {
.name = "applehttp",
.url_open = hls_open,
.url_read = hls_read,
.url_close = hls_close,
.flags = URL_PROTOCOL_FLAG_NESTED_SCHEME,
.priv_data_size = sizeof(HLSContext),
};
#endif
URLProtocol ff_hls_protocol = { URLProtocol ff_hls_protocol = {
.name = "hls", .name = "hls",
.url_open = hls_open, .url_open = hls_open,
......
...@@ -70,9 +70,6 @@ ...@@ -70,9 +70,6 @@
#ifndef FF_API_CLOSE_INPUT_FILE #ifndef FF_API_CLOSE_INPUT_FILE
#define FF_API_CLOSE_INPUT_FILE (LIBAVFORMAT_VERSION_MAJOR < 56) #define FF_API_CLOSE_INPUT_FILE (LIBAVFORMAT_VERSION_MAJOR < 56)
#endif #endif
#ifndef FF_API_APPLEHTTP_PROTO
#define FF_API_APPLEHTTP_PROTO (LIBAVFORMAT_VERSION_MAJOR < 55)
#endif
#ifndef FF_API_READ_PACKET #ifndef FF_API_READ_PACKET
#define FF_API_READ_PACKET (LIBAVFORMAT_VERSION_MAJOR < 55) #define FF_API_READ_PACKET (LIBAVFORMAT_VERSION_MAJOR < 55)
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment