sendrecv: Rename function for greater clarity

This commit is contained in:
Nirbheek Chauhan 2017-10-30 09:12:06 +05:30
parent 96e4f39fd8
commit 569aff43f9

View file

@ -216,7 +216,7 @@ send_sdp_offer (GstWebRTCSessionDescription * offer)
/* Offer created by our pipeline, to be sent to the peer */ /* Offer created by our pipeline, to be sent to the peer */
static void static void
on_offer_received (GstPromise * promise, gpointer user_data) on_offer_created (GstPromise * promise, gpointer user_data)
{ {
GstWebRTCSessionDescription *offer = NULL; GstWebRTCSessionDescription *offer = NULL;
gchar *desc; gchar *desc;
@ -245,7 +245,7 @@ on_negotiation_needed (GstElement * element, gpointer user_data)
app_state = PEER_CALL_NEGOTIATING; app_state = PEER_CALL_NEGOTIATING;
g_signal_emit_by_name (webrtc1, "create-offer", NULL, promise); g_signal_emit_by_name (webrtc1, "create-offer", NULL, promise);
gst_promise_set_change_callback (promise, on_offer_received, user_data, gst_promise_set_change_callback (promise, on_offer_created, user_data,
NULL); NULL);
} }