Commit 758b0072afc10966d75b753e75102d94a3127af3
1 parent
325d0b20
代码优化
Showing
1 changed file
with
3 additions
and
5 deletions
src/reprocessing_module/save_snapshot_reprocessing.cpp
@@ -104,12 +104,10 @@ void save_snapshot_reprocessing::save_img_process() { | @@ -104,12 +104,10 @@ void save_snapshot_reprocessing::save_img_process() { | ||
104 | 104 | ||
105 | bool bPost = false; | 105 | bool bPost = false; |
106 | if(!cur_image.file_path.empty()){ | 106 | if(!cur_image.file_path.empty()){ |
107 | - bool bSaved = jpegUtil.jpeg_encode(cur_image.img_info.pic_desc, cur_image.file_path); | ||
108 | - if(!bSaved){ | 107 | + bPost = jpegUtil.jpeg_encode(cur_image.img_info.pic_desc, cur_image.file_path); |
108 | + if(!bPost){ | ||
109 | LOG_ERROR("jpeg_encode failed"); | 109 | LOG_ERROR("jpeg_encode failed"); |
110 | - } else { | ||
111 | - bPost = true; | ||
112 | - } | 110 | + } |
113 | } else { | 111 | } else { |
114 | bPost = true; | 112 | bPost = true; |
115 | } | 113 | } |