From bfdaae81f47930b382098d1dff84662cf4ab148f Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 10 May 2024 01:00:08 +1000 Subject: [PATCH] splitmuxsrc: Default to only keeping 100 files open Add a reasonably large default for the number of simulataneous files to open, that won't affect users that split recordings into a few large files, but will help prevent fd exhaustion for users that make recordings with lots of small fragments Part-of: --- subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsrc.c b/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsrc.c index e2b9e9ae3d..5416a43049 100644 --- a/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsrc.c +++ b/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsrc.c @@ -64,7 +64,7 @@ enum PROP_NUM_OPEN_FRAGMENTS }; -#define DEFAULT_OPEN_FRAGMENTS 0 +#define DEFAULT_OPEN_FRAGMENTS 100 enum {