diff --git a/src/reprocessing_module/save_snapshot_reprocessing.cpp b/src/reprocessing_module/save_snapshot_reprocessing.cpp index 3b1d1cb..ae48c71 100644 --- a/src/reprocessing_module/save_snapshot_reprocessing.cpp +++ b/src/reprocessing_module/save_snapshot_reprocessing.cpp @@ -104,12 +104,10 @@ void save_snapshot_reprocessing::save_img_process() { bool bPost = false; if(!cur_image.file_path.empty()){ - bool bSaved = jpegUtil.jpeg_encode(cur_image.img_info.pic_desc, cur_image.file_path); - if(!bSaved){ + bPost = jpegUtil.jpeg_encode(cur_image.img_info.pic_desc, cur_image.file_path); + if(!bPost){ LOG_ERROR("jpeg_encode failed"); - } else { - bPost = true; - } + } } else { bPost = true; }