aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mmsh.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-03-31 16:04:59 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-04 17:45:19 +0200
commit5652bb94719c0bb0c58f73e44531af9977493223 (patch)
tree4c9d488b2d072c63def12e5769c831536461abc7 /libavformat/mmsh.c
parent0d8a33b11e605f7fb6b51640d438d41fec08db1c (diff)
downloadffmpeg-5652bb94719c0bb0c58f73e44531af9977493223.tar.gz
avio: make url_alloc internal.
Diffstat (limited to 'libavformat/mmsh.c')
-rw-r--r--libavformat/mmsh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/mmsh.c b/libavformat/mmsh.c
index ac6b60dc95..43087744ea 100644
--- a/libavformat/mmsh.c
+++ b/libavformat/mmsh.c
@@ -32,6 +32,7 @@
#include "mms.h"
#include "asf.h"
#include "http.h"
+#include "url.h"
#define CHUNK_HEADER_LENGTH 4 // 2bytes chunk type and 2bytes chunk length.
#define EXT_HEADER_LENGTH 8 // 4bytes sequence, 2bytes useless and 2bytes chunk length.
@@ -232,7 +233,7 @@ static int mmsh_open(URLContext *h, const char *uri, int flags)
port = 80; // default mmsh protocol port
ff_url_join(httpname, sizeof(httpname), "http", NULL, host, port, path);
- if (url_alloc(&mms->mms_hd, httpname, URL_RDONLY) < 0) {
+ if (ffurl_alloc(&mms->mms_hd, httpname, URL_RDONLY) < 0) {
return AVERROR(EIO);
}
@@ -260,7 +261,7 @@ static int mmsh_open(URLContext *h, const char *uri, int flags)
// close the socket and then reopen it for sending the second play request.
url_close(mms->mms_hd);
memset(headers, 0, sizeof(headers));
- if (url_alloc(&mms->mms_hd, httpname, URL_RDONLY) < 0) {
+ if (ffurl_alloc(&mms->mms_hd, httpname, URL_RDONLY) < 0) {
return AVERROR(EIO);
}
stream_selection = av_mallocz(mms->stream_num * 19 + 1);