mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-21 12:40:40 +00:00
rtsp: Set http custom headers via the AVOption
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
10da1e913b
commit
196bf28c5d
@ -1462,7 +1462,7 @@ redirect:
|
|||||||
"Pragma: no-cache\r\n"
|
"Pragma: no-cache\r\n"
|
||||||
"Cache-Control: no-cache\r\n",
|
"Cache-Control: no-cache\r\n",
|
||||||
sessioncookie);
|
sessioncookie);
|
||||||
ff_http_set_headers(rt->rtsp_hd, headers);
|
av_opt_set(rt->rtsp_hd->priv_data, "headers", headers, 0);
|
||||||
|
|
||||||
/* complete the connection */
|
/* complete the connection */
|
||||||
if (ffurl_connect(rt->rtsp_hd)) {
|
if (ffurl_connect(rt->rtsp_hd)) {
|
||||||
@ -1485,7 +1485,7 @@ redirect:
|
|||||||
"Content-Length: 32767\r\n"
|
"Content-Length: 32767\r\n"
|
||||||
"Expires: Sun, 9 Jan 1972 00:00:00 GMT\r\n",
|
"Expires: Sun, 9 Jan 1972 00:00:00 GMT\r\n",
|
||||||
sessioncookie);
|
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);
|
av_opt_set(rt->rtsp_hd_out->priv_data, "chunksize", "-1", 0);
|
||||||
|
|
||||||
/* Initialize the authentication state for the POST session. The HTTP
|
/* Initialize the authentication state for the POST session. The HTTP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user