Skip to content

Sane: backend 'net': item->get_options(): always call...

Jerome Flesch requested to merge jflesch/libinsane:wip-fix-sane into master

Sane: backend 'net': item->get_options(): always call sane_get_option_descriptor() before sane_control_option(). When using the backend 'net', if we got a SANE_INFO_RELOAD_OPTIONS, we must first call sane_get_option_descriptor() before sane_control_option() even if we just want to use sane_control_option() to get the number of options. --> we make unused call here just to make backend 'net' reloads the options.

This change make the workaround 'set_opt_late' useless --> removed.

Fixes #1 (closed)

Signed-off-by: Jerome Flesch jflesch@openpaper.work

Merge request reports