Fix recoring stop error when press stop button continuously
[profile/ivi/camera.git] / src / cam_app.c
index 63dcb0c..2e80789 100755 (executable)
@@ -5532,21 +5532,6 @@ static int cam_app_state_manager(int previous, int current, gboolean by_asm)
                                cam_debug(LOG_MM, "capture end, preview start");
                        }
                }
-
-               if (previous == CAMERA_STATE_CREATED && current == CAMERA_STATE_PREVIEW) {
-                       cam_info(LOG_UI, "!!!!Preview Began");
-#ifndef        CAMERA_MACHINE_I686
-                       if (ad->toolbar_setting_popup == NULL) {
-                               if ((camapp->shooting_mode == CAM_SELF_MODE)
-                                       ||(camapp->recording_mode == CAM_RECORD_SELF)
-                                       ||(camapp->recording_mode == CAM_RECORD_SELF_MMS) ) {
-                                       DEBUG_TRACE("Not need to make setting menu");
-                               } else {
-                                       ecore_idler_add(cam_app_launch_after_preview_began, ad);
-                               }
-                       }
-#endif
-               }
        } else if (camapp->camera_mode == CAM_CAMCORDER_MODE) {
                if (((previous == RECORDER_STATE_RECORDING)
                    && (current != RECORDER_STATE_PAUSED))
@@ -5577,27 +5562,6 @@ static int cam_app_state_manager(int previous, int current, gboolean by_asm)
 
                }
 
-               if (previous == RECORDER_STATE_CREATED && current == RECORDER_STATE_READY) {
-                       cam_info(LOG_UI, "!!!!Preview Began");
-#ifndef        CAMERA_MACHINE_I686
-                       if (ad->toolbar_setting_popup == NULL) {
-                               if ((camapp->shooting_mode == CAM_SELF_MODE)
-                                       ||(camapp->recording_mode == CAM_RECORD_SELF)
-                                       ||(camapp->recording_mode == CAM_RECORD_SELF_MMS) ) {
-                                       DEBUG_TRACE("Not need to make setting menu");
-                               } else {
-                                       ecore_idler_add(cam_app_launch_after_preview_began, ad);
-                               }
-                       }
-#endif
-               }
-       }
-       cam_app_focus_guide_update(ad);
-
-       if (ad->main_pipe) {
-               char *buffer = strdup("STATE_CHANGED");
-               ecore_pipe_write(ad->main_pipe, buffer, strlen(buffer) + 1);
-               free(buffer);
        }
 
        return 1;