aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/hlsproto.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-02-23 08:20:12 +0100
committerAnton Khirnov <anton@khirnov.net>2013-03-11 18:22:54 +0100
commitc7e044c61bb08b3a6e1e8063e8f4449c88b01201 (patch)
treeafc56ddb5c29e5e0c746d5aaf0622a71b9b13436 /libavformat/hlsproto.c
parent0a7c4daf469d4ac447fb822fe78337f62f4c04e6 (diff)
downloadffmpeg-c7e044c61bb08b3a6e1e8063e8f4449c88b01201.tar.gz
lavf: remove disabled FF_API_APPLEHTTP_PROTO cruft
Diffstat (limited to 'libavformat/hlsproto.c')
-rw-r--r--libavformat/hlsproto.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/libavformat/hlsproto.c b/libavformat/hlsproto.c
index fde7191c35..72b6c7236f 100644
--- a/libavformat/hlsproto.c
+++ b/libavformat/hlsproto.c
@@ -204,19 +204,6 @@ static int hls_open(URLContext *h, const char *uri, int flags)
nested_url);
ret = AVERROR(EINVAL);
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 {
av_log(h, AV_LOG_ERROR, "Unsupported url %s\n", uri);
ret = AVERROR(EINVAL);
@@ -326,17 +313,6 @@ retry:
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 = {
.name = "hls",
.url_open = hls_open,