summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2012-07-16 11:56:20 +0200
committerMartin Storsjö <martin@martin.st>2012-07-17 01:19:01 +0300
commit775c4d3625412928f6902af8c1805ad274f78ebb (patch)
tree1be03bd15c0fb5046aa17985ebcc0a5b2e9bacf0 /libavformat
parent08e087ccf7f7ef9b4e8c55b571bc779c0bc815b0 (diff)
rtmp: Rename rtmphttp to ffrtmphttp
The prefix makes it easier to distinguish the proper end-user protocols from the internal ones. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/Makefile2
-rw-r--r--libavformat/allformats.c2
-rw-r--r--libavformat/rtmphttp.c4
-rw-r--r--libavformat/rtmpproto.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/Makefile b/libavformat/Makefile
index 40f5371c44..ae057f2eab 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -340,6 +340,7 @@ OBJS-$(CONFIG_LIBRTMP) += librtmp.o
OBJS-$(CONFIG_APPLEHTTP_PROTOCOL) += hlsproto.o
OBJS-$(CONFIG_CONCAT_PROTOCOL) += concat.o
OBJS-$(CONFIG_CRYPTO_PROTOCOL) += crypto.o
+OBJS-$(CONFIG_FFRTMPHTTP_PROTOCOL) += rtmphttp.o
OBJS-$(CONFIG_FILE_PROTOCOL) += file.o
OBJS-$(CONFIG_GOPHER_PROTOCOL) += gopher.o
OBJS-$(CONFIG_HLS_PROTOCOL) += hlsproto.o
@@ -351,7 +352,6 @@ OBJS-$(CONFIG_MMST_PROTOCOL) += mmst.o mms.o asf.o
OBJS-$(CONFIG_MD5_PROTOCOL) += md5proto.o
OBJS-$(CONFIG_PIPE_PROTOCOL) += file.o
OBJS-$(CONFIG_RTMP_PROTOCOL) += rtmpproto.o rtmppkt.o
-OBJS-$(CONFIG_RTMPHTTP_PROTOCOL) += rtmphttp.o
OBJS-$(CONFIG_RTMPT_PROTOCOL) += rtmpproto.o rtmppkt.o
OBJS-$(CONFIG_RTP_PROTOCOL) += rtpproto.o
OBJS-$(CONFIG_SCTP_PROTOCOL) += sctp.o
diff --git a/libavformat/allformats.c b/libavformat/allformats.c
index 8456398cb5..34d8359509 100644
--- a/libavformat/allformats.c
+++ b/libavformat/allformats.c
@@ -246,6 +246,7 @@ void av_register_all(void)
#endif
REGISTER_PROTOCOL (CONCAT, concat);
REGISTER_PROTOCOL (CRYPTO, crypto);
+ REGISTER_PROTOCOL (FFRTMPHTTP, ffrtmphttp);
REGISTER_PROTOCOL (FILE, file);
REGISTER_PROTOCOL (GOPHER, gopher);
REGISTER_PROTOCOL (HLS, hls);
@@ -257,7 +258,6 @@ void av_register_all(void)
REGISTER_PROTOCOL (MD5, md5);
REGISTER_PROTOCOL (PIPE, pipe);
REGISTER_PROTOCOL (RTMP, rtmp);
- REGISTER_PROTOCOL (RTMPHTTP, rtmphttp);
REGISTER_PROTOCOL (RTMPT, rtmpt);
REGISTER_PROTOCOL (RTP, rtp);
REGISTER_PROTOCOL (SCTP, sctp);
diff --git a/libavformat/rtmphttp.c b/libavformat/rtmphttp.c
index 499341a173..febe4b31d5 100644
--- a/libavformat/rtmphttp.c
+++ b/libavformat/rtmphttp.c
@@ -240,8 +240,8 @@ fail:
return ret;
}
-URLProtocol ff_rtmphttp_protocol = {
- .name = "rtmphttp",
+URLProtocol ff_ffrtmphttp_protocol = {
+ .name = "ffrtmphttp",
.url_open = rtmp_http_open,
.url_read = rtmp_http_read,
.url_write = rtmp_http_write,
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 5342be8dc4..f8ec894344 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -1120,7 +1120,7 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
if (!strcmp(proto, "rtmpt")) {
/* open the http tunneling connection */
- ff_url_join(buf, sizeof(buf), "rtmphttp", NULL, hostname, port, NULL);
+ ff_url_join(buf, sizeof(buf), "ffrtmphttp", NULL, hostname, port, NULL);
} else {
/* open the tcp connection */
if (port < 0)