[ITC][media-content][NONACR][DPTTIZEN-2363, fail TC fixed ]
authorAsit Srivastava <asit.s@samsung.com>
Tue, 30 Aug 2016 08:06:07 +0000 (13:36 +0530)
committerAsit Srivastava <asit.s@samsung.com>
Tue, 30 Aug 2016 08:06:07 +0000 (13:36 +0530)
Change-Id: Id551fadb2d69ad64dec73cb92e3ca246645f9bb9
Signed-off-by: Asit Srivastava <asit.s@samsung.com>
src/itc/media-content/ITs-media-content-face.c

index 4312b67..6681a57 100755 (executable)
@@ -446,7 +446,10 @@ int ITc_media_info_start_cancel_face_detection_p(void)
        }
        
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_start_face_detection", MediaContentGetError(nRet));
-       
+
+       //If callback is invoked for "media_info_start_face_detection" then media_info_cancel_face_detection api will fail. So call "media_info_start_face_detection" one more time.
+       media_info_start_face_detection( g_hImageInfo, MediaFaceDetectionCompletedCB , NULL);
+
        // for media_info_cancel_face_detection to work no need to check for callback hit as per the header file info
        nRet = media_info_cancel_face_detection(g_hImageInfo);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_cancel_face_detection", MediaContentGetError(nRet));