From c557c11e86f4d3bdca12bf284e58fd8c67c655d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Fri, 23 May 2025 08:10:32 +0200 Subject: [PATCH] clapper: Check enhancer config existence before applying it Fixes crash due to trying to apply config for an enhancer while there are no settings in this enhancer to be applied --- src/lib/clapper/gst/clapper-enhancer-director.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/clapper/gst/clapper-enhancer-director.c b/src/lib/clapper/gst/clapper-enhancer-director.c index d044ed13..ff4c85a4 100644 --- a/src/lib/clapper/gst/clapper-enhancer-director.c +++ b/src/lib/clapper/gst/clapper-enhancer-director.c @@ -95,7 +95,8 @@ clapper_enhancer_director_extract_in_thread (ClapperEnhancerDirectorData *data) #endif if (G_LIKELY (extractable != NULL)) { - clapper_enhancer_proxy_apply_config_to_enhancer (proxy, config, (GObject *) extractable); + if (config) + clapper_enhancer_proxy_apply_config_to_enhancer (proxy, config, (GObject *) extractable); success = clapper_extractable_extract (extractable, data->uri, harvest, data->cancellable, data->error);