srt: Set SRTO_IPV6ONLY to 0 by default

Since SRT 1.5.2 this option must be explicitly set to `0` or `1` before
binding to `::`, or binding will fail.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5157>
This commit is contained in:
Jan Alexander Steffens (heftig) 2023-08-07 14:59:25 +02:00 committed by GStreamer Marge Bot
parent a9e9001778
commit c9c7581c4e

View file

@ -139,6 +139,7 @@ struct srt_constant_params
static const bool bool_false = false;
static const bool bool_true = true;
static const int32_t int32_zero = 0;
static const struct linger no_linger = { 0, 0 };
/* *INDENT-OFF* */
@ -147,6 +148,7 @@ static const struct srt_constant_params srt_params[] = {
{"SRTO_RCVSYN", SRTO_RCVSYN, &bool_false, sizeof bool_false}, /* non-blocking */
{"SRTO_LINGER", SRTO_LINGER, &no_linger, sizeof no_linger}, /* no linger time */
{"SRTO_TSBPDMODE", SRTO_TSBPDMODE, &bool_true, sizeof bool_true}, /* Timestamp-based Packet Delivery mode must be enabled */
{"SRTO_IPV6ONLY", SRTO_IPV6ONLY, &int32_zero, sizeof int32_zero}, /* must be either 0 or 1 before binding to :: */
{NULL, -1, NULL, 0},
};
/* *INDENT-ON* */