webrtc: Fix critical in webrtc-recvonly-h264 example

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/3269>
This commit is contained in:
Patrick Griffis 2022-10-23 14:56:32 -05:00 committed by Tim-Philipp Müller
parent d1d365373f
commit 98bc763f2b

View 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);