[FFmpeg-cvslog] Make ff_rtsp_send_cmd_with_content_async static to rtsp.c.

Diego Elio Pettenò git
Wed Jan 26 04:01:19 CET 2011


ffmpeg | branch: master | Diego Elio Petten? <flameeyes at gmail.com> | Tue Jan 25 00:29:38 2011 +0000| [3d21b4f607930b65d96741c0e6d81d3212e7a6c0] | committer: Michael Niedermayer

Make ff_rtsp_send_cmd_with_content_async static to rtsp.c.

Signed-off-by: Janne Grunau <janne-ffmpeg at jannau.net>
(cherry picked from commit 57c4d01ec9286b3b9f9a0101654f7bc8a00edb63)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3d21b4f607930b65d96741c0e6d81d3212e7a6c0
---

 libavformat/rtsp.c |   23 ++++++++++++++++++-----
 libavformat/rtsp.h |   18 ------------------
 2 files changed, 18 insertions(+), 23 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;
diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h
index 62bd3a2..f0ead10 100644
--- a/libavformat/rtsp.h
+++ b/libavformat/rtsp.h
@@ -374,24 +374,6 @@ extern int rtsp_rtp_port_max;
 /**
  * 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
- */
-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.
- *
  * @see rtsp_send_cmd_with_content_async
  */
 int ff_rtsp_send_cmd_async(AVFormatContext *s, const char *method,




More information about the ffmpeg-cvslog mailing list