summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2010-01-21 20:04:17 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2010-01-21 20:04:17 +0000
commit2e13ecfecae5929d98292e5378c1671ad4adf842 (patch)
tree2afdea6b047ec25163c675579eca31ae6c238edd /libavformat
parentf8c087333d28c035ae50ae9c589fcebf98c988f2 (diff)
Remove reply and content_ptr arguments from rtsp_send_cmd_async(), since
they are unused. Originally committed as revision 21371 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtsp.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index bbd047f0c9..1764ecf266 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -929,9 +929,7 @@ static int rtsp_read_reply(AVFormatContext *s, RTSPMessageHeader *reply,
return 0;
}
-static void rtsp_send_cmd_async(AVFormatContext *s,
- const char *cmd, RTSPMessageHeader *reply,
- unsigned char **content_ptr)
+static void rtsp_send_cmd_async(AVFormatContext *s, const char *cmd)
{
RTSPState *rt = s->priv_data;
char buf[4096], buf1[1024];
@@ -960,7 +958,7 @@ static void rtsp_send_cmd(AVFormatContext *s,
const char *cmd, RTSPMessageHeader *reply,
unsigned char **content_ptr)
{
- rtsp_send_cmd_async(s, cmd, reply, content_ptr);
+ rtsp_send_cmd_async(s, cmd);
rtsp_read_reply(s, reply, content_ptr, 0);
}
@@ -1651,10 +1649,9 @@ static int rtsp_read_packet(AVFormatContext *s, AVPacket *pkt)
snprintf(cmd, sizeof(cmd) - 1,
"GET_PARAMETER %s RTSP/1.0\r\n",
s->filename);
- rtsp_send_cmd_async(s, cmd, reply, NULL);
+ rtsp_send_cmd_async(s, cmd);
} else {
- rtsp_send_cmd_async(s, "OPTIONS * RTSP/1.0\r\n",
- reply, NULL);
+ rtsp_send_cmd_async(s, "OPTIONS * RTSP/1.0\r\n");
}
}
@@ -1714,7 +1711,6 @@ static int rtsp_read_seek(AVFormatContext *s, int stream_index,
static int rtsp_read_close(AVFormatContext *s)
{
RTSPState *rt = s->priv_data;
- RTSPMessageHeader reply1, *reply = &reply1;
char cmd[1024];
#if 0
@@ -1726,7 +1722,7 @@ static int rtsp_read_close(AVFormatContext *s)
snprintf(cmd, sizeof(cmd),
"TEARDOWN %s RTSP/1.0\r\n",
s->filename);
- rtsp_send_cmd_async(s, cmd, reply, NULL);
+ rtsp_send_cmd_async(s, cmd);
rtsp_close_streams(rt);
url_close(rt->rtsp_hd);