mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 07:40:00 +08:00
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
This commit is contained in:

committed by
Martin Storsjö

parent
19da45f22b
commit
b8c2c41d66
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user