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
This commit is contained in:
Rafał Dzięgiel
2025-05-23 08:10:32 +02:00
parent a2f67a9bc0
commit c557c11e86

View File

@@ -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);