summaryrefslogtreecommitdiffstats
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gmail.com>2011-01-25 00:29:38 +0000
committerJanne Grunau <janne-ffmpeg@jannau.net>2011-01-25 22:10:36 +0100
commit57c4d01ec9286b3b9f9a0101654f7bc8a00edb63 (patch)
tree6c93f388d3e4aff96bf4281733a63e61fdb95827 /libavformat/rtsp.c
parent13eb6b90977768116c937c5d6b2e074679a3ad21 (diff)
downloadffmpeg-streaming-57c4d01ec9286b3b9f9a0101654f7bc8a00edb63.zip
ffmpeg-streaming-57c4d01ec9286b3b9f9a0101654f7bc8a00edb63.tar.gz
Make ff_rtsp_send_cmd_with_content_async static to rtsp.c.
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c23
1 files changed, 18 insertions, 5 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index ca9ce7c..8ff4de7 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -924,11 +924,24 @@ int ff_rtsp_read_reply(AVFormatContext *s, RTSPMessageHeader *reply,
return 0;
}
-int ff_rtsp_send_cmd_with_content_async(AVFormatContext *s,
- const char *method, const char *url,
- const char *headers,
- const unsigned char *send_content,
- int send_content_length)
+/**
+ * Send a command to the RTSP server without waiting for the reply.
+ *
+ * @param s RTSP (de)muxer context
+ * @param method the method for the request
+ * @param url the target url for the request
+ * @param headers extra header lines to include in the request
+ * @param send_content if non-null, the data to send as request body content
+ * @param send_content_length the length of the send_content data, or 0 if
+ * send_content is null
+ *
+ * @return zero if success, nonzero otherwise
+ */
+static int ff_rtsp_send_cmd_with_content_async(AVFormatContext *s,
+ const char *method, const char *url,
+ const char *headers,
+ const unsigned char *send_content,
+ int send_content_length)
{
RTSPState *rt = s->priv_data;
char buf[4096], *out_buf;
OpenPOWER on IntegriCloud