move sane_cancel outside of tight loop, only done at end of batch

merge-requests/1/head
m. allan noah 2006-06-09 13:04:06 +00:00
rodzic d6b17f2f81
commit e5bb981d6a
2 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -1,3 +1,8 @@
2006-06-09 m. allan noah <anoah AT pfeiffer DOT edu>
* frontend/scanimage.c: move sane_cancel() out of scan_it().
more like scanadf. fixes issues with duplex adf scanning.
2006-06-08 Wittawat Yamwong <wittawat@web.de>
* backend/pixma.h: Upgraded to version 0.11.3

Wyświetl plik

@ -1409,7 +1409,6 @@ scan_it (void)
}
cleanup:
sane_cancel (device);
if (image.data)
free (image.data);
@ -2182,6 +2181,8 @@ List of available devices:", prog_name);
while ((batch
&& (batch_count == BATCH_COUNT_UNLIMITED || --batch_count))
&& SANE_STATUS_GOOD == status);
sane_cancel (device);
}
else
status = test_it ();