[Release version 0.2.31] 1. Fix coding violation, 2. Update error handling to send... 46/84046/1 accepted/tizen/common/20160818.144326 accepted/tizen/ivi/20160818.231814 accepted/tizen/mobile/20160818.231635 accepted/tizen/tv/20160818.231745 accepted/tizen/wearable/20160818.231715 submit/tizen/20160818.052348
authorJeongmo Yang <jm80.yang@samsung.com>
Tue, 16 Aug 2016 09:07:41 +0000 (18:07 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Tue, 16 Aug 2016 09:16:47 +0000 (18:16 +0900)
Change-Id: Idac5bee42ce1b7ce279fe75aaed3d63bcbd4d669
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/capi-media-recorder.spec
src/recorder.c

index 4c07f0f..d0fafaa 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-recorder
 Summary:    A Recorder API
-Version:    0.2.30
+Version:    0.2.31
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 36ef60f..a31fa22 100644 (file)
@@ -983,7 +983,7 @@ static int _recorder_msg_send(int api, recorder_cb_info_s *cb_info, int *ret)
 
        /*LOGD("send msg %s", msg);*/
 
-       if (muse_core_ipc_send_msg(cb_info->fd, msg) <= 0) {
+       if (muse_core_ipc_send_msg(cb_info->fd, msg) < 0) {
                LOGE("message send failed");
                *ret = RECORDER_ERROR_INVALID_OPERATION;
        } else {
@@ -2636,7 +2636,7 @@ int recorder_foreach_supported_video_encoder(recorder_h recorder, recorder_suppo
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
        muse_recorder_api_e api = MUSE_RECORDER_API_FOREACH_SUPPORTED_VIDEO_ENCODER;
 
-       if (!pc || !pc->cb_info|| foreach_cb == NULL) {
+       if (!pc || !pc->cb_info || foreach_cb == NULL) {
                LOGE("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }