tests: webrtcbin: Fix repaired-stream-id handling in simulcast test

The test was attempting to add the same stream-id extension twice, probably some
unfinished copy/paste.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6615>
This commit is contained in:
Philippe Normand 2024-04-12 09:32:13 +01:00 committed by GStreamer Marge Bot
parent 15434ce51d
commit 97d4c56c8f

View file

@ -5192,10 +5192,12 @@ add_simulcast_audio_test_src_harness (GstHarness * h, guint n_rid,
g_signal_emit_by_name (payloader, "add-extension", ext);
gst_clear_object (&ext);
}
if (n_rid > 0 && stream_ext_id != G_MAXUINT) {
ext = gst_rtp_header_extension_create_from_uri (RTPHDREXT_STREAM_ID);
if (n_rid > 0 && repaired_ext_id != G_MAXUINT) {
ext =
gst_rtp_header_extension_create_from_uri
(RTPHDREXT_REPAIRED_STREAM_ID);
fail_unless (ext);
gst_rtp_header_extension_set_id (ext, stream_ext_id);
gst_rtp_header_extension_set_id (ext, repaired_ext_id);
g_object_set (ext, "rid", rid, NULL);
g_signal_emit_by_name (payloader, "add-extension", ext);
gst_clear_object (&ext);