mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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:
parent
e99a6f3142
commit
11b5ebd058
1 changed files with 1 additions and 1 deletions
|
@ -1905,7 +1905,7 @@ gst_rtsp_connection_send_messages_usec (GstRTSPConnection * conn,
|
||||||
memset (&serialized_messages[i], 0, sizeof (serialized_messages[i]));
|
memset (&serialized_messages[i], 0, sizeof (serialized_messages[i]));
|
||||||
|
|
||||||
serialized_messages[i].data = (guint8 *) base64_buffer;
|
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++;
|
n_vectors++;
|
||||||
} else {
|
} else {
|
||||||
n_vectors++;
|
n_vectors++;
|
||||||
|
|
Loading…
Reference in a new issue