extern "C" {
#endif
-#define CAMERA_CB_TIMEOUT 4
-#define CAMERA_CB_NO_TIMEOUT 0
-#define CAMERA_FD_INIT -1
+#define CAMERA_CB_TIMEOUT 4
+#define CAMERA_CB_NETWORK_PREVIEW_TIMEOUT 10
+#define CAMERA_CB_NO_TIMEOUT 0
+#define CAMERA_FD_INIT -1
#define CAMERA_IS_FD_VALID(fd) (fd > CAMERA_FD_INIT)
/* preview stream */
MMCamcorderVideoStreamDataType *stream_data;
+
+ /* network */
+ gboolean is_network;
} camera_cb_info_s;
typedef struct _camera_message_s {
Name: capi-media-camera
Summary: A Camera API
-Version: 0.4.78
-Release: 2
+Version: 0.4.79
+Release: 0
Group: Multimedia/API
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
%if 0%{?sec_build_binary_debug_enable}
export CFLAGS+=" -DTIZEN_DEBUG_ENABLE"
%endif
+%if "%{tizen_profile_name}" != "tv"
+export CFLAGS+=" -DTIZEN_FEATURE_NO_TIMEOUT_FOR_PREVIEW"
+%endif
%if 0%{?gcov:1}
export CFLAGS+=" -fprofile-arcs -ftest-coverage"
export LDFLAGS+=" -lgcov"
goto _CB_RETURN_END;
}
+ if (!cb_info->is_server_connected) {
+ ret = CAMERA_ERROR_SERVICE_DISCONNECTED;
+ goto _CB_RETURN_END;
+ }
+
if (!cb_info->api_activating[api])
CAM_LOG_WARNING("invalid signal received, wait again...");
}
muse_core_msg_free(error_msg);
error_msg = NULL;
+ for (i = 0 ; i < MUSE_CAMERA_API_MAX ; i++) {
+ if (cb_info->api_waiting[i])
+ g_cond_broadcast(&cb_info->api_cond[i]);
+ }
+
CAM_LOG_ERROR("add error msg for service disconnection done");
}
//LCOV_EXCL_STOP
pc->cb_info->preview_format = preview_format;
pc->cb_info->dp_info.type = CAMERA_DISPLAY_TYPE_NONE;
pc->cb_info->user_buffer_supported = (gboolean)user_buffer_supported;
+ pc->cb_info->is_network = is_network;
g_camera_log_level = log_level;
CAM_LOG_INFO("default preview format %d, user buffer %d, log level %d",
}
}
- _camera_msg_send(api, fds, pc->cb_info, &ret, CAMERA_CB_NO_TIMEOUT);
+ _camera_msg_send(api, fds, pc->cb_info, &ret,
+#ifdef TIZEN_FEATURE_NO_TIMEOUT_FOR_PREVIEW
+ CAMERA_CB_NO_TIMEOUT);
+#else
+ (pc->cb_info->is_network ? CAMERA_CB_NETWORK_PREVIEW_TIMEOUT : CAMERA_CB_TIMEOUT));
+#endif
if (ret != CAMERA_ERROR_NONE)
goto _START_FAILED;