This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 368ecdd3a4fcee3149d23796d012811e65f96e97 Author: Marvin Scholz <[email protected]> AuthorDate: Tue Aug 26 23:31:57 2025 +0200 Commit: Marvin Scholz <[email protected]> CommitDate: Thu Feb 19 17:18:11 2026 +0100 rtsp: expose rtsp_send_cmd_with_content_async Add the ff_ prefix and move the declaration to the header, so it can be used in other places like rtspdec in a future commit. --- libavformat/rtsp.c | 6 +++--- libavformat/rtsp.h | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 6b88da182c..9b022f6efa 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1385,7 +1385,7 @@ start: * * @return zero if success, nonzero otherwise */ -static int 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, @@ -1445,7 +1445,7 @@ static int rtsp_send_cmd_with_content_async(AVFormatContext *s, int ff_rtsp_send_cmd_async(AVFormatContext *s, const char *method, const char *url, const char *headers) { - return rtsp_send_cmd_with_content_async(s, method, url, headers, NULL, 0); + return ff_rtsp_send_cmd_with_content_async(s, method, url, headers, NULL, 0); } int ff_rtsp_send_cmd(AVFormatContext *s, const char *method, const char *url, @@ -1470,7 +1470,7 @@ int ff_rtsp_send_cmd_with_content(AVFormatContext *s, retry: cur_auth_type = rt->auth_state.auth_type; - if ((ret = rtsp_send_cmd_with_content_async(s, method, url, header, + if ((ret = ff_rtsp_send_cmd_with_content_async(s, method, url, header, send_content, send_content_length)) < 0) return ret; diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index ca278acd43..c27cbe1e03 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -508,6 +508,25 @@ void ff_rtsp_parse_line(AVFormatContext *s, int ff_rtsp_send_cmd_async(AVFormatContext *s, const char *method, const char *url, const char *headers); +/** + * 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 and wait for the reply. * _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
