summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpr.jung <pr.jung@samsung.com>2015-09-03 19:31:12 +0900
committerpr.jung <pr.jung@samsung.com>2015-09-03 19:31:12 +0900
commit12f329c4e4caf62d4d2998660db6eb6e8abcf97f (patch)
treea13dfaab616bd782d2e41e85f4f291067a57bc92
parent1fa9a6d9fff61254fed4a2617b12f5a68b2756d5 (diff)
downloadlibsvi-12f329c4e4caf62d4d2998660db6eb6e8abcf97f.tar.gz
libsvi-12f329c4e4caf62d4d2998660db6eb6e8abcf97f.tar.bz2
libsvi-12f329c4e4caf62d4d2998660db6eb6e8abcf97f.zip
Change-Id: Idd3d9820516f6765f7f1ceba84e1b1a544f36d30 Signed-off-by: pr.jung <pr.jung@samsung.com>
-rw-r--r--mobile/src/check.c6
-rw-r--r--wearable/src/check.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/mobile/src/check.c b/mobile/src/check.c
index b9c7179..ad44868 100644
--- a/mobile/src/check.c
+++ b/mobile/src/check.c
@@ -321,12 +321,12 @@ static bool mobile_get_always_off_case(int type, int pattern)
int ret;
/* check if the state of voice recorder is recording */
- if (vconf_get_int(VCONFKEY_SOUND_STATUS, &ret) < 0) {
- _D("fail to get media sound status, status will be zero");
+ if (vconf_get_int(VCONFKEY_RECORDER_STATE, &ret) < 0) {
+ _W("fail to get media sound status, status will be zero");
ret = 0;
}
- if (CHECK_SOUND(type) && ret & VCONFKEY_SOUND_STATUS_AVRECORDING) {
+ if (CHECK_SOUND(type) && ret == VCONFKEY_RECORDER_STATE_RECORDING) {
_D("voice recording status is RECORDING");
return true;
}
diff --git a/wearable/src/check.c b/wearable/src/check.c
index 5935d4d..faba18c 100644
--- a/wearable/src/check.c
+++ b/wearable/src/check.c
@@ -324,12 +324,12 @@ static bool wearable_get_always_off_case(int type, int pattern)
int ret;
/* check if the state of voice recorder is recording */
- if (vconf_get_int(VCONFKEY_SOUND_STATUS, &ret) < 0) {
- _D("fail to get media sound status, status will be zero");
+ if (vconf_get_int(VCONFKEY_RECORDER_STATE, &ret) < 0) {
+ _W("fail to get media sound status, status will be zero");
ret = 0;
}
- if (CHECK_SOUND(type) && ret & VCONFKEY_SOUND_STATUS_AVRECORDING) {
+ if (CHECK_SOUND(type) && ret == VCONFKEY_RECORDER_STATE_RECORDING) {
_D("voice recording status is RECORDING");
return true;
}