#include <errno.h>
#include <stdio.h>
#include <dlog.h>
+#include <vconf.h>
#include "muse_camera_msg.h"
#include "muse_camera_internal.h"
#include <muse_server.h>
char value_key[KEY_LENGTH] = {'\0',};
int ret = CAMERA_ERROR_NONE;
int set_value = -1;
+ int vconf_state = VCONFKEY_CAMERA_STATE_NULL;
LOGD("Enter - previous %d, current %d, by_policy %d",
previous, current, by_policy);
}
snprintf(value_key, KEY_LENGTH, "device_state_camera%d", device_type);
- if (previous == CAMERA_STATE_CREATED && current == CAMERA_STATE_PREVIEW)
+ if (previous == CAMERA_STATE_CREATED && current == CAMERA_STATE_PREVIEW) {
set_value = CAMERA_DEVICE_STATE_WORKING;
- else if (previous == CAMERA_STATE_PREVIEW && current == CAMERA_STATE_CREATED)
+ vconf_state = VCONFKEY_CAMERA_STATE_PREVIEW;
+ } else if (previous == CAMERA_STATE_PREVIEW && current == CAMERA_STATE_CREATED) {
set_value = CAMERA_DEVICE_STATE_NULL;
+ vconf_state = VCONFKEY_CAMERA_STATE_NULL;
+ }
if (set_value != -1) {
- LOGD("device[%s] state set : %d", value_key, set_value);
+ LOGD("device[%s] state set : %d, vconf state : %d",
+ value_key, set_value, vconf_state);
+
muse_server_module_set_value(module, value_key, set_value);
+ vconf_set_int(VCONFKEY_CAMERA_STATE, vconf_state);
}
return;
Name: mmsvc-camera
Summary: A Camera module for muse server
-Version: 0.3.29
-Release: 1
+Version: 0.3.30
+Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(muse-server)
BuildRequires: pkgconfig(mm-camcorder)
BuildRequires: pkgconfig(capi-base-common)