summaryrefslogtreecommitdiff
path: root/ext/webrtc/gstwebrtcice.h
diff options
context:
space:
mode:
authorIlya Kreymer <ikreymer@gmail.com>2019-08-15 08:25:26 -0700
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-03-01 14:42:17 +0000
commit92626535c7136725dfab0857d6c3900e041084b7 (patch)
tree380b15119cdcb0621137cde75c6ad3d943558675 /ext/webrtc/gstwebrtcice.h
parent3a3965e5cfe138400a709ab7936659520209fc63 (diff)
downloadgstreamer-plugins-bad-92626535c7136725dfab0857d6c3900e041084b7.tar.gz
webrtc ice: Add 'min/max-rtp-port' props for setting RTP port range
default min port == 0, max port == 65535 -- if min port == 0, uses existing random port selection (range ignored) add 'gathering_started' flag to avoid changing ports after gathering has started validity checks: min port <= max port enforced, error thrown otherwise include tests to ensure port range is being utilized (by @hhardy) Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/119>
Diffstat (limited to 'ext/webrtc/gstwebrtcice.h')
-rw-r--r--ext/webrtc/gstwebrtcice.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/webrtc/gstwebrtcice.h b/ext/webrtc/gstwebrtcice.h
index 283672fe9..5e7543c80 100644
--- a/ext/webrtc/gstwebrtcice.h
+++ b/ext/webrtc/gstwebrtcice.h
@@ -51,6 +51,9 @@ struct _GstWebRTCICE
GHashTable *turn_servers;
GstWebRTCICEPrivate *priv;
+
+ guint min_rtp_port;
+ guint max_rtp_port;
};
struct _GstWebRTCICEClass