Remove some condition to send PREVIEW_CB_RETURN message in preview_cb() 92/310592/1 accepted/tizen/unified/20240503.115745 accepted/tizen/unified/dev/20240620.003651 accepted/tizen/unified/toolchain/20240508.012323 accepted/tizen/unified/x/20240507.050946 accepted/tizen/unified/x/asan/20240625.092039
authorJeongmo Yang <jm80.yang@samsung.com>
Thu, 2 May 2024 09:26:12 +0000 (18:26 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Thu, 2 May 2024 09:27:47 +0000 (18:27 +0900)
- No need to check preview type.

[Version] 1.0.1
[Issue Type] Update

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

index 900c2f3..29928a6 100644 (file)
@@ -1,7 +1,7 @@
 Name:       capi-media-camera
 Summary:    A Camera API
-Version:    1.0.0
-Release:    1
+Version:    1.0.1
+Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
index d10029f..1f4fa41 100644 (file)
@@ -538,11 +538,8 @@ static void __camera_event_handler_preview(camera_cb_info_s *cb_info, char *recv
        }
 
 _PREVIEW_CB_HANDLER_DONE:
-       /* send PREVIEW_CB_RETURN message if zero copy buffer is used(num_buffer_fd is bigger than 0)
-          and preview callback(normal or media packet) is set. */
-       if (num_buffer_fd > 0 &&
-               (cb_info->user_cb[MUSE_CAMERA_EVENT_TYPE_PREVIEW] ||
-                cb_info->user_cb[MUSE_CAMERA_EVENT_TYPE_MEDIA_PACKET_PREVIEW]))
+       /* send PREVIEW_CB_RETURN message if zero copy buffer is used */
+       if (num_buffer_fd > 0)
                _camera_msg_send(MUSE_CAMERA_API_PREVIEW_CB_RETURN, NULL, cb_info, NULL, 0);
 
        if (pkt) {