From 4cede7c472146b2d257bfdb1a95271619f4b6218 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Tue, 28 Feb 2023 18:55:25 -0500 Subject: [PATCH] srt: Set default poll-timeout to one second Removing a socket from the poll is not a guaranteed unlock. If we let the poll continue indefinitely, then e.g. an unfed srtsrc can deadlock when we try to shut it down. Part-of: --- subprojects/gst-plugins-bad/ext/srt/gstsrtobject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/ext/srt/gstsrtobject.h b/subprojects/gst-plugins-bad/ext/srt/gstsrtobject.h index 49786f4840..0863cdac19 100644 --- a/subprojects/gst-plugins-bad/ext/srt/gstsrtobject.h +++ b/subprojects/gst-plugins-bad/ext/srt/gstsrtobject.h @@ -38,7 +38,7 @@ G_BEGIN_DECLS #define GST_SRT_DEFAULT_MODE GST_SRT_CONNECTION_MODE_CALLER #define GST_SRT_DEFAULT_PBKEYLEN GST_SRT_KEY_LENGTH_0 -#define GST_SRT_DEFAULT_POLL_TIMEOUT -1 +#define GST_SRT_DEFAULT_POLL_TIMEOUT 1000 #define GST_SRT_DEFAULT_LATENCY 125 #define GST_SRT_DEFAULT_MSG_SIZE 1316 #define GST_SRT_DEFAULT_WAIT_FOR_CONNECTION (TRUE)