diff options
author | Josh Allmann <joshua.allmann@gmail.com> | 2010-06-05 19:45:46 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-06-05 19:45:46 +0000 |
commit | d0382374b77ad7bb274fc5d81eeef3c922d9821a (patch) | |
tree | 0fb69dcdb374c2de548b0885be9f68a2d7a82870 /libavformat/rtsp.h | |
parent | c453d1bb8c2e54c00bd5cf252187e080cf3b1bb1 (diff) | |
download | ffmpeg-d0382374b77ad7bb274fc5d81eeef3c922d9821a.tar.gz |
RTSP: Propagate errors up from ff_rtsp_send_cmd*
Patch by Josh Allmann, joshua dot allmann at gmail
Originally committed as revision 23497 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.h')
-rw-r--r-- | libavformat/rtsp.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index 9d8e53b061..5e990ea001 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -345,8 +345,10 @@ extern int rtsp_rtp_port_max; * @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 */ -void ff_rtsp_send_cmd_with_content_async(AVFormatContext *s, +int ff_rtsp_send_cmd_with_content_async(AVFormatContext *s, const char *method, const char *url, const char *headers, const unsigned char *send_content, @@ -356,7 +358,7 @@ void ff_rtsp_send_cmd_with_content_async(AVFormatContext *s, * * @see rtsp_send_cmd_with_content_async */ -void ff_rtsp_send_cmd_async(AVFormatContext *s, const char *method, +int ff_rtsp_send_cmd_async(AVFormatContext *s, const char *method, const char *url, const char *headers); /** @@ -372,8 +374,10 @@ void ff_rtsp_send_cmd_async(AVFormatContext *s, const char *method, * @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 */ -void ff_rtsp_send_cmd_with_content(AVFormatContext *s, +int ff_rtsp_send_cmd_with_content(AVFormatContext *s, const char *method, const char *url, const char *headers, RTSPMessageHeader *reply, @@ -386,7 +390,7 @@ void ff_rtsp_send_cmd_with_content(AVFormatContext *s, * * @see rtsp_send_cmd_with_content */ -void ff_rtsp_send_cmd(AVFormatContext *s, const char *method, +int ff_rtsp_send_cmd(AVFormatContext *s, const char *method, const char *url, const char *headers, RTSPMessageHeader *reply, unsigned char **content_ptr); |