diff options
author | Josh Allmann <joshua.allmann@gmail.com> | 2010-06-05 19:41:43 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-06-05 19:41:43 +0000 |
commit | b8c2c41d66534e4f6d3bbe8474d1ef76fb7c8be0 (patch) | |
tree | 2efcc4fc9a8f3e95405188b2703759acf755b5c9 /libavformat/rtspenc.c | |
parent | 19da45f22bfc1937f0fec8bf06c8f4de1f68a3b9 (diff) | |
download | ffmpeg-b8c2c41d66534e4f6d3bbe8474d1ef76fb7c8be0.tar.gz |
RTSP: Add a second URLContext for outgoing messages
Done in preparation for RTSP over HTTP.
Patch by Josh Allmann, joshua dot allmann at gmail
Originally committed as revision 23494 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtspenc.c')
-rw-r--r-- | libavformat/rtspenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtspenc.c b/libavformat/rtspenc.c index 0761783b25..7dc6a83388 100644 --- a/libavformat/rtspenc.c +++ b/libavformat/rtspenc.c @@ -57,7 +57,7 @@ static int rtsp_write_header(AVFormatContext *s) if (rtsp_write_record(s) < 0) { ff_rtsp_close_streams(s); - url_close(rt->rtsp_hd); + ff_rtsp_close_connections(s); return AVERROR_INVALIDDATA; } return 0; @@ -162,7 +162,7 @@ static int rtsp_write_close(AVFormatContext *s) ff_rtsp_send_cmd_async(s, "TEARDOWN", rt->control_uri, NULL); ff_rtsp_close_streams(s); - url_close(rt->rtsp_hd); + ff_rtsp_close_connections(s); ff_network_close(); return 0; } |