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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1051>
This commit is contained in:
Kristofer Björkström 2021-02-25 11:03:31 +01:00
parent e99a6f3142
commit 11b5ebd058

View file

@ -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++;