webrtcbin: Prevent critical warning when creating an additional data channel
authorPhilippe Normand <philn@igalia.com>
Mon, 10 Jul 2023 11:03:25 +0000 (12:03 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 11 Jul 2023 20:39:59 +0000 (20:39 +0000)
commitc06726973704e98dace57fe077a780c5d4fd4d9d
tree69908fc468ce4a2e5440d5eff77f2314a7e0bb57
parentca48193cd6b7ad43f16486d9cd928648fea39015
webrtcbin: Prevent critical warning when creating an additional data channel

The max_channels value wasn't clamped to 65534 in all situations.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5012>
subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c
subprojects/gst-plugins-bad/tests/check/elements/webrtcbin.c