fix up! Remove thread for preview callback when stop preview 19/267519/1 accepted/tizen/unified/20211214.124906 submit/tizen/20211207.021806 submit/tizen/20211213.031250
authorJeongmo Yang <jm80.yang@samsung.com>
Mon, 6 Dec 2021 12:41:15 +0000 (21:41 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Mon, 6 Dec 2021 12:41:15 +0000 (21:41 +0900)
commitd4fceb73984d283726a641511cd90ad8af7d86cd
treeba6f9c0af185675a0d5a53d75b8387c999eb3b3b
parentf8650af2452b1c32b6f86de4b55665a8fb3e7bd2
fix up! Remove thread for preview callback when stop preview

- The deadlock is occurred with below sequence.
  1. camera_start_preview() -> create thread for preview callback
  2. camera_start_capture()
  3. got capture_completed_cb()
  4. camera_start_preview() -> create new thread for preview callback and the old one is remained.
  5. camera_stop_preview() -> send signal to remove thread for preview callback, but 1 thread is remained.

[Version] 0.4.68
[Issue Type] Bug fix

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