Merge branch 'master' of http://192.168.100.140:8099/sane/code_device
This commit is contained in:
commit
219effc0ca
|
@ -771,8 +771,8 @@ void hg_scanner::thread_handle_image_process(void)
|
|||
catch (...)
|
||||
{
|
||||
VLOG_MINI_1(LOG_LEVEL_FATAL, "FATAL: Insufficient memory when proecss image with %d bytes.\n", tiny_buffer->size());
|
||||
stop();
|
||||
status_ = SCANNER_ERR_INSUFFICIENT_MEMORY;
|
||||
stop();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1498,7 +1498,10 @@ void hg_scanner_239::thread_handle_usb_read(void)
|
|||
}
|
||||
if (user_cancel_)
|
||||
{
|
||||
status_ = ret = SCANNER_ERR_USER_CANCELED;
|
||||
if (status_) // thread_handle_image_process maybe call stop() when insufficient memory occurs .
|
||||
ret = status_;
|
||||
else
|
||||
status_ = ret = SCANNER_ERR_USER_CANCELED;
|
||||
//VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "用户取消操作 '%s'\n", hg_scanner_err_name(status_));
|
||||
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "\347\224\250\346\210\267\345\217\226\346\266\210\346\223\215\344\275\234 '%s'\n", hg_scanner_err_name(status_));
|
||||
auoto_paper_indx = 0;
|
||||
|
|
|
@ -1373,8 +1373,11 @@ void hg_scanner_439::thread_handle_usb_read(void)
|
|||
}
|
||||
if (user_cancel_)
|
||||
{
|
||||
status_ = ret = SCANNER_ERR_USER_CANCELED;
|
||||
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "用户取消操作 '%s'\n", hg_scanner_err_name(status_));
|
||||
if (status_) // thread_handle_image_process maybe call stop() when insufficient memory occurs .
|
||||
ret = status_;
|
||||
else
|
||||
status_ = ret = SCANNER_ERR_USER_CANCELED;
|
||||
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "\347\224\250\346\210\267\345\217\226\346\266\210\346\223\215\344\275\234 '%s'\n", hg_scanner_err_name(status_));
|
||||
break;
|
||||
}
|
||||
if (count == 0)
|
||||
|
|
Loading…
Reference in New Issue