From 0a4d9b4db33bf74df13223e6f78925ab5d38556e Mon Sep 17 00:00:00 2001 From: Jeongmo Yang Date: Tue, 16 Aug 2016 18:07:41 +0900 Subject: [PATCH] [Release version 0.2.31] 1. Fix coding violation, 2. Update error handling to send message Change-Id: Idac5bee42ce1b7ce279fe75aaed3d63bcbd4d669 Signed-off-by: Jeongmo Yang --- packaging/capi-media-recorder.spec | 2 +- src/recorder.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/capi-media-recorder.spec b/packaging/capi-media-recorder.spec index 4c07f0f..d0fafaa 100644 --- a/packaging/capi-media-recorder.spec +++ b/packaging/capi-media-recorder.spec @@ -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 diff --git a/src/recorder.c b/src/recorder.c index 36ef60f..a31fa22 100644 --- a/src/recorder.c +++ b/src/recorder.c @@ -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; } -- 2.7.4