rtsp: use dynbuf instead of custom reallocs

For the RTP buffering.

Closes #10776
This commit is contained in:
Daniel Stenberg 2023-03-16 12:11:46 +01:00
parent d2d0e60012
commit 1b9ea3239d
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 16 additions and 35 deletions

View file

@ -29,6 +29,8 @@
#ifndef CURL_DISABLE_RTSP
#include "dynbuf.h"
extern const struct Curl_handler Curl_handler_rtsp;
CURLcode Curl_rtsp_parseheader(struct Curl_easy *data, char *header);
@ -45,8 +47,7 @@ CURLcode Curl_rtsp_parseheader(struct Curl_easy *data, char *header);
* Currently, only used for tracking incomplete RTP data reads
*/
struct rtsp_conn {
char *rtp_buf;
ssize_t rtp_bufsize;
struct dynbuf buf;
int rtp_channel;
};