From: Sebastian Dröge Date: Tue, 31 Dec 2019 10:41:25 +0000 (+0200) Subject: webrtc: Actually make use of promise created one line before X-Git-Tag: 1.19.3~507^2~2480 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=303a094779c5876e9b580bc7354e64d9ee55540e;p=platform%2Fupstream%2Fgstreamer.git webrtc: Actually make use of promise created one line before Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/1042 --- diff --git a/tests/examples/webrtc/webrtcbidirectional.c b/tests/examples/webrtc/webrtcbidirectional.c index 2b8bf11..13acc86 100644 --- a/tests/examples/webrtc/webrtcbidirectional.c +++ b/tests/examples/webrtc/webrtcbidirectional.c @@ -99,7 +99,7 @@ _on_answer_received (GstPromise * promise, gpointer user_data) /* this is another way to tell webrtcbin that we don't want to be notified * when this task is complete: interrupt the promise */ promise = gst_promise_new (); - g_signal_emit_by_name (webrtc2, "set-local-description", answer, NULL); + g_signal_emit_by_name (webrtc2, "set-local-description", answer, promise); gst_promise_interrupt (promise); gst_promise_unref (promise);