]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
reload params with reset
authorBastian Dehn <hhaalo@arcor.de>
Sun, 25 Feb 2024 10:08:02 +0000 (11:08 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 25 Feb 2024 10:08:02 +0000 (11:08 +0100)
src/kds_s2000w_handler_opts.c

index a2dc3cc92ad074494314248835e821a1f3f9d232..37828da4df581699e8d2c2b60e1880bcd4d1dc76 100644 (file)
@@ -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;