Fix "invalid signal received" error 19/294319/5 accepted/tizen/unified/20230720.164627
authorJeongmo Yang <jm80.yang@samsung.com>
Fri, 16 Jun 2023 04:47:25 +0000 (13:47 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Tue, 18 Jul 2023 02:38:05 +0000 (11:38 +0900)
commit8aaf0fefc8038d6c51649e07ef26c7726cecc2f7
tree50fcdc244ee9f2239e1ea5d7c859fca23a678299
parent99ffbec3a9b4244302ecdc83fd1cdf16c651573c
Fix "invalid signal received" error

- If the same API is called in several threads simultaneously,
  "api_activating[api]" value is reset when first response is come.
  As a result, second response will get "invalid signal received" error.
- This patch changes type of "api_activating" member variable from "gboolean" to "gint",
  and use it like reference count.

[Version] 0.4.112
[Issue Type] Bug fix

Change-Id: Ib98a2148e74e21e0b2d4d896b3b0f1baa4d0813b
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
include/camera_private.h
packaging/capi-media-camera.spec
src/camera.c