summaryrefslogtreecommitdiff
path: root/lib/rtsp.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-01 22:13:55 +0000
committerYang Tse <yangsita@gmail.com>2010-02-01 22:13:55 +0000
commit35e220606d0f39c62f769c408799f5a61ba07599 (patch)
tree2368b2018b3a5e5d670b426182ff28226773fedb /lib/rtsp.c
parent55f1e787f34cd3d86aa3d6bf981f077de86be265 (diff)
downloadcurl-35e220606d0f39c62f769c408799f5a61ba07599.tar.gz
Conroy's fix to make the code match with the RTP documentation regarding
writing out the whole header. The docs say it writes the whole header, but the code (before this patch) did not write out the leading $.
Diffstat (limited to 'lib/rtsp.c')
-rw-r--r--lib/rtsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rtsp.c b/lib/rtsp.c
index fd02018fe..873b15f5f 100644
--- a/lib/rtsp.c
+++ b/lib/rtsp.c
@@ -562,10 +562,10 @@ CURLcode Curl_rtsp_rtp_readwrite(struct SessionHandle *data,
}
else {
/* We have the full RTP interleaved packet
- * Write out the header but strip the leading '$' */
+ * 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[1], rtp_length + 3);
+ result = rtp_client_write(conn, &rtp[0], rtp_length + 4);
if(result) {
failf(data, "Got an error writing an RTP packet");
*readmore = FALSE;