Remove VIDEO/AUDIO_CAPTURED message handling - libmm-camcorder will free allocated... 30/47430/1 tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150904.140114 accepted/tizen/tv/20150904.140331 accepted/tizen/wearable/20150904.140432 submit/tizen/20150904.094141 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release
authorJeongmo Yang <jm80.yang@samsung.com>
Thu, 3 Sep 2015 09:09:15 +0000 (18:09 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Thu, 3 Sep 2015 09:09:15 +0000 (18:09 +0900)
Change-Id: I860d61433cbd91a19fc0668385c4ef8e9d6bf82a
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/capi-media-camera.spec
src/camera.c

index 9ff8cc3..a725884 100755 (executable)
@@ -3,7 +3,7 @@
 
 Name:       capi-media-camera
 Summary:    A Camera library in Tizen C API
-Version:    0.2.5
+Version:    0.2.6
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index d2faba8..030c075 100644 (file)
@@ -530,7 +530,6 @@ static int __mm_camera_message_callback(int message, void *param, void *user_dat
        MMMessageParamType *m = (MMMessageParamType *)param;
        camera_state_e previous_state;
        camera_policy_e policy = CAMERA_POLICY_NONE;
-       MMCamRecordingReport *report = NULL;
        MMCamFaceDetectInfo *cam_fd_info = NULL;
 
        if (handle->relay_message_callback) {
@@ -621,18 +620,6 @@ static int __mm_camera_message_callback(int message, void *param, void *user_dat
                        }
                }
                break;
-       case MM_MESSAGE_CAMCORDER_VIDEO_CAPTURED:
-       case MM_MESSAGE_CAMCORDER_AUDIO_CAPTURED:
-               report = (MMCamRecordingReport *)m->data;
-               if (report != NULL && report->recording_filename) {
-                       free(report->recording_filename);
-                       report->recording_filename = NULL;
-               }
-               if (report) {
-                       free(report);
-                       report = NULL;
-               }
-               break;
        case MM_MESSAGE_CAMCORDER_VIDEO_SNAPSHOT_CAPTURED:
                if (handle->user_cb[_CAMERA_EVENT_TYPE_CAPTURE_COMPLETE]) {
                        ((camera_capture_completed_cb)handle->user_cb[_CAMERA_EVENT_TYPE_CAPTURE_COMPLETE])(handle->user_data[_CAMERA_EVENT_TYPE_CAPTURE_COMPLETE]);