webrtc: Fix critical in webrtc-recvonly-h264 example
authorPatrick Griffis <pgriffis@igalia.com>
Sun, 23 Oct 2022 19:56:32 +0000 (14:56 -0500)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 23 Oct 2022 22:51:28 +0000 (22:51 +0000)
This signal only takes 2 properties yet a third was passed.
This would cause a critical in GLib.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3252>

subprojects/gst-examples/webrtc/sendonly/webrtc-recvonly-h264.c

index 8df62f4..c5ff6c9 100644 (file)
@@ -354,7 +354,7 @@ create_receiver_entry (SoupWebsocketConnection * connection)
       RTP_PAYLOAD_TYPE
       ",clock-rate=90000,packetization-mode=(string)1, profile-level-id=(string)42c016");
   g_signal_emit_by_name (receiver_entry->webrtcbin, "add-transceiver",
-      GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_RECVONLY, video_caps, NULL, &trans);
+      GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_RECVONLY, video_caps, &trans);
   gst_caps_unref (video_caps);
   gst_object_unref (trans);