sendrecv/gst: Don't need to allocate to send OFFER_REQUEST

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-examples/-/merge_requests/31>
This commit is contained in:
Nirbheek Chauhan 2021-02-09 14:27:03 +05:30
parent 767f46b1a0
commit a508bc243d

View file

@ -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 =