Mercurial > libavformat.hg
changeset 5862:57fc219dc951 libavformat
Use the caller's RTSPMessageHeader in rtsp_setup_input_streams
Currently, the caller doesn't get the status_code and location for rediects,
since rtsp_setup_input_streams uses a copy of RTSPMessageHeader of its own.
author | mstorsjo |
---|---|
date | Mon, 22 Mar 2010 14:42:52 +0000 |
parents | 97c1c7512fc3 |
children | 7d952a85947b |
files | rtsp.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rtsp.c Sun Mar 21 18:06:56 2010 +0000 +++ b/rtsp.c Mon Mar 22 14:42:52 2010 +0000 @@ -1296,10 +1296,9 @@ return 0; } -static int rtsp_setup_input_streams(AVFormatContext *s) +static int rtsp_setup_input_streams(AVFormatContext *s, RTSPMessageHeader *reply) { RTSPState *rt = s->priv_data; - RTSPMessageHeader reply1, *reply = &reply1; char cmd[1024]; unsigned char *content = NULL; int ret; @@ -1531,7 +1530,7 @@ } if (s->iformat) - err = rtsp_setup_input_streams(s); + err = rtsp_setup_input_streams(s, reply); else err = rtsp_setup_output_streams(s, host); if (err)