From 7c954bb30a62c53b7ba4d78a52b44123f015d40d Mon Sep 17 00:00:00 2001 From: Haesu Gwon Date: Tue, 20 Feb 2024 13:38:10 +0900 Subject: [PATCH] [Camera] Fix CameraDeviceManager bug (#5959) --- src/Tizen.Multimedia.Camera/Camera/CameraDeviceManager.cs | 4 ++-- src/Tizen.Multimedia.Camera/Interop/Interop.Camera.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Tizen.Multimedia.Camera/Camera/CameraDeviceManager.cs b/src/Tizen.Multimedia.Camera/Camera/CameraDeviceManager.cs index 09181109428..f56f6740b7c 100644 --- a/src/Tizen.Multimedia.Camera/Camera/CameraDeviceManager.cs +++ b/src/Tizen.Multimedia.Camera/Camera/CameraDeviceManager.cs @@ -145,7 +145,7 @@ public ushort GetProductId(CameraDevice device) { ValidationUtil.ValidateEnum(typeof(CameraDevice), device, nameof(device)); - Native.GetProductId(Handle, out ushort productId).ThrowIfFailed("failed to get product ID"); + Native.GetProductId(Handle, device, out ushort productId).ThrowIfFailed("failed to get product ID"); return productId; } @@ -160,7 +160,7 @@ public ushort GetVendorId(CameraDevice device) { ValidationUtil.ValidateEnum(typeof(CameraDevice), device, nameof(device)); - Native.GetVendorId(Handle, out ushort vendorId).ThrowIfFailed("failed to get vendor ID"); + Native.GetVendorId(Handle, device, out ushort vendorId).ThrowIfFailed("failed to get vendor ID"); return vendorId; } diff --git a/src/Tizen.Multimedia.Camera/Interop/Interop.Camera.cs b/src/Tizen.Multimedia.Camera/Interop/Interop.Camera.cs index 75998ed6045..26a8f2a1542 100644 --- a/src/Tizen.Multimedia.Camera/Interop/Interop.Camera.cs +++ b/src/Tizen.Multimedia.Camera/Interop/Interop.Camera.cs @@ -351,10 +351,10 @@ internal static partial class CameraDeviceManager internal static extern CameraError UnsetDeviceConnectionChangedCallback(IntPtr handle, int id); [DllImport(Libraries.Camera, EntryPoint = "camera_device_manager_get_product_id")] - internal static extern CameraError GetProductId(IntPtr handle, out ushort id); + internal static extern CameraError GetProductId(IntPtr handle, CameraDevice device, out ushort id); [DllImport(Libraries.Camera, EntryPoint = "camera_device_manager_get_vendor_id")] - internal static extern CameraError GetVendorId(IntPtr handle, out ushort id); + internal static extern CameraError GetVendorId(IntPtr handle, CameraDevice device, out ushort id); [NativeStruct("camera_device_s", Include="camera.h", PkgConfig="capi-media-camera")] [StructLayout(LayoutKind.Sequential)]