diff options
author | Martin Storsjö <martin@martin.st> | 2010-03-25 21:46:14 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-03-25 21:46:14 +0000 |
commit | b17d11c6329848b6f6e3af90baf2bcf044275ce9 (patch) | |
tree | cfb48e81f3e848981d3e1ae2ff8a13994bff537a /libavformat/rtspenc.c | |
parent | c5c20ae4367905f0cf3080d46aa3bed3806134b9 (diff) | |
download | ffmpeg-b17d11c6329848b6f6e3af90baf2bcf044275ce9.tar.gz |
Add separate method/url parameters to the rtsp_send_cmd functions
Originally committed as revision 22675 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtspenc.c')
-rw-r--r-- | libavformat/rtspenc.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libavformat/rtspenc.c b/libavformat/rtspenc.c index 5eab8000fd..f7aadd6e41 100644 --- a/libavformat/rtspenc.c +++ b/libavformat/rtspenc.c @@ -36,11 +36,9 @@ static int rtsp_write_record(AVFormatContext *s) char cmd[1024]; snprintf(cmd, sizeof(cmd), - "RECORD %s RTSP/1.0\r\n" "Range: npt=%0.3f-\r\n", - rt->control_uri, (double) 0); - ff_rtsp_send_cmd(s, cmd, reply, NULL); + ff_rtsp_send_cmd(s, "RECORD", rt->control_uri, cmd, reply, NULL); if (reply->status_code != RTSP_STATUS_OK) return -1; rt->state = RTSP_STATE_STREAMING; @@ -159,12 +157,8 @@ static int rtsp_write_packet(AVFormatContext *s, AVPacket *pkt) static int rtsp_write_close(AVFormatContext *s) { RTSPState *rt = s->priv_data; - char cmd[1024]; - snprintf(cmd, sizeof(cmd), - "TEARDOWN %s RTSP/1.0\r\n", - rt->control_uri); - ff_rtsp_send_cmd_async(s, cmd); + ff_rtsp_send_cmd_async(s, "TEARDOWN", rt->control_uri, NULL); ff_rtsp_close_streams(s); url_close(rt->rtsp_hd); |