mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
webrtc: Actually make use of promise created one line before
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/1042
This commit is contained in:
parent
42b60627fa
commit
303a094779
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue