summaryrefslogtreecommitdiff
path: root/libavformat/mmsh.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-11-07 11:48:51 +0200
committerMartin Storsjö <martin@martin.st>2011-11-10 10:51:43 +0200
commit27fad11b5b0d2ae48f3ffe0a88d012bc8cdf90df (patch)
tree78f1e8dc93ac9993411ae79668674e6ceaa78132 /libavformat/mmsh.c
parent196bf28c5d858e1594f9677fcab8677aca17ad33 (diff)
downloadffmpeg-27fad11b5b0d2ae48f3ffe0a88d012bc8cdf90df.tar.gz
mms: Set http custom headers via the AVOption
Signed-off-by: Martin Storsjö <martin@martin.st>
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 0ce282c906..cbce2f5284 100644
--- a/libavformat/mmsh.c
+++ b/libavformat/mmsh.c
@@ -28,6 +28,7 @@
#include <string.h>
#include "libavutil/intreadwrite.h"
#include "libavutil/avstring.h"
+#include "libavutil/opt.h"
#include "internal.h"
#include "mms.h"
#include "asf.h"
@@ -245,7 +246,7 @@ static int mmsh_open(URLContext *h, const char *uri, int flags)
CLIENTGUID
"Connection: Close\r\n\r\n",
host, port, mmsh->request_seq++);
- ff_http_set_headers(mms->mms_hd, headers);
+ av_opt_set(mms->mms_hd->priv_data, "headers", headers, 0);
err = ffurl_connect(mms->mms_hd);
if (err) {
@@ -291,7 +292,7 @@ static int mmsh_open(URLContext *h, const char *uri, int flags)
goto fail;
}
av_dlog(NULL, "out_buffer is %s", headers);
- ff_http_set_headers(mms->mms_hd, headers);
+ av_opt_set(mms->mms_hd->priv_data, "headers", headers, 0);
err = ffurl_connect(mms->mms_hd);
if (err) {