summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2021-04-13 17:35:58 -0400
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-04-21 03:21:55 +0000
commitbc817f340c0b7d08d7b3120e755110f771a6ba2b (patch)
treea87afb0207c2a216152b94b8f54e16d261832fa1 /tests
parent813a320c0676964efc56506adeeeff79799d995a (diff)
downloadgstreamer-plugins-bad-bc817f340c0b7d08d7b3120e755110f771a6ba2b.tar.gz
webrtcbin test: Don't fail if data channel is created
In tests that voluntarily create a data channel. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2168>
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/webrtcbin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/check/elements/webrtcbin.c b/tests/check/elements/webrtcbin.c
index 9cdeb434c..4fa5efae2 100644
--- a/tests/check/elements/webrtcbin.c
+++ b/tests/check/elements/webrtcbin.c
@@ -2901,6 +2901,7 @@ GST_START_TEST (test_renego_data_channel_add_stream)
/* negotiate an data channel and then renegotiate to add a av stream */
t->on_negotiation_needed = NULL;
t->on_ice_candidate = NULL;
+ t->on_data_channel = NULL;
t->on_pad_added = _pad_added_fakesink;
fail_if (gst_element_set_state (t->webrtc1,
@@ -2966,6 +2967,7 @@ GST_START_TEST (test_renego_stream_data_channel_add_stream)
/* Negotiate a stream and a data channel, then renogotiate with a new stream */
t->on_negotiation_needed = NULL;
t->on_ice_candidate = NULL;
+ t->on_data_channel = NULL;
t->on_pad_added = _pad_added_fakesink;
h = gst_harness_new_with_element (t->webrtc1, "sink_0", NULL);