Skip to content

Commit

Permalink
gstrtspconnection: correct data_size when tunneled mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kristofer Björkström committed Feb 25, 2021
1 parent e99a6f3 commit 11b5ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gst-libs/gst/rtsp/gstrtspconnection.c
Expand Up @@ -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++;
Expand Down

0 comments on commit 11b5ebd

Please sign in to comment.