From 5126dd6b4790d8981c17449c642ab5d29391e9a6 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 25 Feb 2024 11:08:02 +0100 Subject: [PATCH] reload params with reset --- src/kds_s2000w_handler_opts.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/kds_s2000w_handler_opts.c b/src/kds_s2000w_handler_opts.c index a2dc3cc..37828da 100644 --- a/src/kds_s2000w_handler_opts.c +++ b/src/kds_s2000w_handler_opts.c @@ -384,7 +384,11 @@ void kds_s2000w_handler_set_option(handler* h, int option, void* value, int* inf json_object_put(capabilities); capabilities = NULL; - *info = RELOAD_OPTIONS; + h->current_metadata->format = 1; + h->current_metadata->channels = 3; + h->current_metadata->depth = 8; + + *info = RELOAD_OPTIONS | RELOAD_PARAMS; _load_options(h); return; break; -- 2.39.5