const char *videosrc_name = NULL;
mmf_camcorder_t *hcamcorder = MMF_CAMCORDER(handle);
_MMCamcorderSubContext *sc = NULL;
+ _MMCamcorderImageInfo *info = NULL;
GstCameraControl *control = NULL;
type_element *VideosrcElement = NULL;
if (!sc)
return TRUE;
+ info = sc->info_image;
+ if (!info) {
+ _mmcam_dbg_err("info image is NULL");
+ return FALSE;
+ }
+
if (ivalue && current_state == MM_CAMCORDER_STATE_CAPTURING) {
+ if (info->capture_send_count > 0) {
+ info->capturing = FALSE;
+ _mmcam_dbg_warn("capturing -> FALSE and skip capture callback since now");
+ }
+
if (!GST_IS_CAMERA_CONTROL(sc->element[_MMCAMCORDER_VIDEOSRC_SRC].gst)) {
_mmcam_dbg_warn("Can't cast Video source into camera control.");
return TRUE;
if (!info->capturing || stop_cont_shot) {
_mmcam_dbg_warn("stop command[%d] or not capturing state[%d]. skip this...", stop_cont_shot, info->capturing);
+ /* set FALSE here for the case that info->capturing is still FALSE
+ (== capture_send_count is 0 at the time _mmcamcorder_commit_capture_break_cont_shot is called) */
+ info->capturing = FALSE;
+
/*free GstBuffer*/
if (sample1)
gst_sample_unref(sample1);