From 11b5ebd05826f9bc3354dd6c35d2f23beba2971a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristofer=20Bj=C3=B6rkstr=C3=B6m?= Date: Thu, 25 Feb 2021 11:03:31 +0100 Subject: [PATCH] gstrtspconnection: correct data_size when tunneled mode gst_rtsp_connection_send_messages_usec in tunneled mode does base64 encode messages. When calculating data_size 1 bytes is added, which results in ending the base64 with a NULL. Part-of: --- gst-libs/gst/rtsp/gstrtspconnection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index 1f3b74420d..574b967ce5 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -1905,7 +1905,7 @@ gst_rtsp_connection_send_messages_usec (GstRTSPConnection * conn, memset (&serialized_messages[i], 0, sizeof (serialized_messages[i])); serialized_messages[i].data = (guint8 *) base64_buffer; - serialized_messages[i].data_size = (out_buffer - base64_buffer) + 1; + serialized_messages[i].data_size = (out_buffer - base64_buffer); n_vectors++; } else { n_vectors++;