summaryrefslogtreecommitdiff
path: root/lib/rtsp.c
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2021-01-21 00:38:52 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-24 18:15:03 +0100
commitecb13416e316fc1c781f865d2bb7e74462ef793b (patch)
tree9aa6952ee7245220c75337e01f1e7762237a5f45 /lib/rtsp.c
parent14e075d1a7fd58c78145bccbd53e679a3b691f5e (diff)
downloadcurl-ecb13416e316fc1c781f865d2bb7e74462ef793b.tar.gz
lib: remove conn->data uses
Closes #6499
Diffstat (limited to 'lib/rtsp.c')
-rw-r--r--lib/rtsp.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/rtsp.c b/lib/rtsp.c
index e40832513..55766757a 100644
--- a/lib/rtsp.c
+++ b/lib/rtsp.c
@@ -87,7 +87,7 @@ static int rtsp_getsock_do(struct Curl_easy *data, struct connectdata *conn,
}
static
-CURLcode rtp_client_write(struct connectdata *conn, char *ptr, size_t len);
+CURLcode rtp_client_write(struct Curl_easy *data, char *ptr, size_t len);
/*
@@ -652,7 +652,7 @@ static CURLcode rtsp_rtp_readwrite(struct Curl_easy *data,
* Write out the header including the leading '$' */
DEBUGF(infof(data, "RTP write channel %d rtp_length %d\n",
rtspc->rtp_channel, rtp_length));
- result = rtp_client_write(conn, &rtp[0], rtp_length + 4);
+ result = rtp_client_write(data, &rtp[0], rtp_length + 4);
if(result) {
failf(data, "Got an error writing an RTP packet");
*readmore = FALSE;
@@ -723,9 +723,8 @@ static CURLcode rtsp_rtp_readwrite(struct Curl_easy *data,
}
static
-CURLcode rtp_client_write(struct connectdata *conn, char *ptr, size_t len)
+CURLcode rtp_client_write(struct Curl_easy *data, char *ptr, size_t len)
{
- struct Curl_easy *data = conn->data;
size_t wrote;
curl_write_callback writeit;
void *user_ptr;
@@ -765,10 +764,8 @@ CURLcode rtp_client_write(struct connectdata *conn, char *ptr, size_t len)
return CURLE_OK;
}
-CURLcode Curl_rtsp_parseheader(struct connectdata *conn,
- char *header)
+CURLcode Curl_rtsp_parseheader(struct Curl_easy *data, char *header)
{
- struct Curl_easy *data = conn->data;
long CSeq = 0;
if(checkprefix("CSeq:", header)) {