From c9c7581c4ebf41158e80448a2b2202bbec24327e Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Mon, 7 Aug 2023 14:59:25 +0200 Subject: [PATCH] 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: --- subprojects/gst-plugins-bad/ext/srt/gstsrtobject.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-bad/ext/srt/gstsrtobject.c b/subprojects/gst-plugins-bad/ext/srt/gstsrtobject.c index 80852d1c8a..71af3cb004 100644 --- a/subprojects/gst-plugins-bad/ext/srt/gstsrtobject.c +++ b/subprojects/gst-plugins-bad/ext/srt/gstsrtobject.c @@ -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* */