diff --git a/rtos/code/application/source/cardv/SrcCode/UIApp/PhotoFast/PhotoFast.c b/rtos/code/application/source/cardv/SrcCode/UIApp/PhotoFast/PhotoFast.c index 490b28d06..e407ee9fa 100755 --- a/rtos/code/application/source/cardv/SrcCode/UIApp/PhotoFast/PhotoFast.c +++ b/rtos/code/application/source/cardv/SrcCode/UIApp/PhotoFast/PhotoFast.c @@ -1149,7 +1149,7 @@ static void PhotoFast_CaptureStop(void) PhotoFast_Sliceencode2_Stop(); } -static void PhotoFast_CaptureStart(HD_VIDEO_FRAME *p_video_frame) +static INT32 PhotoFast_CaptureStart(HD_VIDEO_FRAME *p_video_frame) { HD_PATH_ID vprc_path; @@ -1177,7 +1177,7 @@ static void PhotoFast_CaptureStart(HD_VIDEO_FRAME *p_video_frame) } #if POWERON_FAST_SLICE_ENC_VER2 == ENABLE - PhotoFast_Sliceencode2_Enq_Frame(p_video_frame); + return PhotoFast_Sliceencode2_Enq_Frame(p_video_frame); #else PhotoFast_SliceEncode(vprc_path, p_video_frame); #endif @@ -1719,8 +1719,14 @@ THREAD_RETTYPE PhotoFast_FlowPreviewThread(void *arg) sf_ir_led_set(0, 0, 0, 0); } #endif - - PhotoFast_CaptureStart(&video_frame); + + if(PhotoFast_CaptureStart(&video_frame) == E_OK){ + g_u32PrvCapCnt++; + } + else{ + DBG_WRN("enq frame failed...\n"); + } + if (g_u32PrvCapCnt >= max_cnt) { g_bPreViewPullFlag = FALSE; }