From a508bc243d02c256c1d6ac7fbe6e6980f655e70f Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 9 Feb 2021 14:27:03 +0530 Subject: [PATCH] sendrecv/gst: Don't need to allocate to send OFFER_REQUEST Part-of: --- webrtc/sendrecv/gst/webrtc-sendrecv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/webrtc/sendrecv/gst/webrtc-sendrecv.c b/webrtc/sendrecv/gst/webrtc-sendrecv.c index 9f24a29b1f..68469d5183 100644 --- a/webrtc/sendrecv/gst/webrtc-sendrecv.c +++ b/webrtc/sendrecv/gst/webrtc-sendrecv.c @@ -288,9 +288,7 @@ on_negotiation_needed (GstElement * element, gpointer user_data) app_state = PEER_CALL_NEGOTIATING; if (remote_is_offerer || our_id) { - gchar *msg = g_strdup_printf ("OFFER_REQUEST"); - soup_websocket_connection_send_text (ws_conn, msg); - g_free (msg); + soup_websocket_connection_send_text (ws_conn, "OFFER_REQUEST"); } else { GstPromise *promise; promise =