diff options
author | Martin Storsjö <martin@martin.st> | 2011-11-07 11:45:57 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-11-10 10:51:35 +0200 |
commit | 196bf28c5d858e1594f9677fcab8677aca17ad33 (patch) | |
tree | ba2221c75c827849d8f8a12493670214f76de067 /libavformat/rtsp.c | |
parent | 10da1e913b46eb424b1f89fe8c60e6536713be11 (diff) | |
download | ffmpeg-196bf28c5d858e1594f9677fcab8677aca17ad33.tar.gz |
rtsp: Set http custom headers via the AVOption
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 84cf922c26..862582aaa8 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1462,7 +1462,7 @@ redirect: "Pragma: no-cache\r\n" "Cache-Control: no-cache\r\n", sessioncookie); - ff_http_set_headers(rt->rtsp_hd, headers); + av_opt_set(rt->rtsp_hd->priv_data, "headers", headers, 0); /* complete the connection */ if (ffurl_connect(rt->rtsp_hd)) { @@ -1485,7 +1485,7 @@ redirect: "Content-Length: 32767\r\n" "Expires: Sun, 9 Jan 1972 00:00:00 GMT\r\n", sessioncookie); - ff_http_set_headers(rt->rtsp_hd_out, headers); + av_opt_set(rt->rtsp_hd_out->priv_data, "headers", headers, 0); av_opt_set(rt->rtsp_hd_out->priv_data, "chunksize", "-1", 0); /* Initialize the authentication state for the POST session. The HTTP |