Signed-off-by: Martin Storsjö <martin@martin.st>
| ... | ... |
@@ -28,6 +28,7 @@ |
| 28 | 28 |
#include <string.h> |
| 29 | 29 |
#include "libavutil/intreadwrite.h" |
| 30 | 30 |
#include "libavutil/avstring.h" |
| 31 |
+#include "libavutil/opt.h" |
|
| 31 | 32 |
#include "internal.h" |
| 32 | 33 |
#include "mms.h" |
| 33 | 34 |
#include "asf.h" |
| ... | ... |
@@ -245,7 +246,7 @@ static int mmsh_open(URLContext *h, const char *uri, int flags) |
| 245 | 245 |
CLIENTGUID |
| 246 | 246 |
"Connection: Close\r\n\r\n", |
| 247 | 247 |
host, port, mmsh->request_seq++); |
| 248 |
- ff_http_set_headers(mms->mms_hd, headers); |
|
| 248 |
+ av_opt_set(mms->mms_hd->priv_data, "headers", headers, 0); |
|
| 249 | 249 |
|
| 250 | 250 |
err = ffurl_connect(mms->mms_hd); |
| 251 | 251 |
if (err) {
|
| ... | ... |
@@ -291,7 +292,7 @@ static int mmsh_open(URLContext *h, const char *uri, int flags) |
| 291 | 291 |
goto fail; |
| 292 | 292 |
} |
| 293 | 293 |
av_dlog(NULL, "out_buffer is %s", headers); |
| 294 |
- ff_http_set_headers(mms->mms_hd, headers); |
|
| 294 |
+ av_opt_set(mms->mms_hd->priv_data, "headers", headers, 0); |
|
| 295 | 295 |
|
| 296 | 296 |
err = ffurl_connect(mms->mms_hd); |
| 297 | 297 |
if (err) {
|