From: Jeongmo Yang Date: Thu, 3 Sep 2015 09:09:15 +0000 (+0900) Subject: Remove VIDEO/AUDIO_CAPTURED message handling - libmm-camcorder will free allocated... X-Git-Tag: accepted/tizen/mobile/20150904.140114^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d4de5cb7175e3991f0cb0d80a9a4c6e3fe9d28a;p=platform%2Fcore%2Fapi%2Fcamera.git Remove VIDEO/AUDIO_CAPTURED message handling - libmm-camcorder will free allocated memory in them Change-Id: I860d61433cbd91a19fc0668385c4ef8e9d6bf82a Signed-off-by: Jeongmo Yang --- diff --git a/packaging/capi-media-camera.spec b/packaging/capi-media-camera.spec index 9ff8cc3..a725884 100755 --- a/packaging/capi-media-camera.spec +++ b/packaging/capi-media-camera.spec @@ -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 diff --git a/src/camera.c b/src/camera.c index d2faba8..030c075 100644 --- a/src/camera.c +++ b/src/camera.c @@ -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]);