From: Haesu Gwon Date: Tue, 20 Feb 2024 04:38:10 +0000 (+0900) Subject: [Camera] Fix CameraDeviceManager bug (#5959) X-Git-Tag: accepted/tizen/unified/20240221.062937~1^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c954bb30a62c53b7ba4d78a52b44123f015d40d;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Camera] Fix CameraDeviceManager bug (#5959) --- diff --git a/src/Tizen.Multimedia.Camera/Camera/CameraDeviceManager.cs b/src/Tizen.Multimedia.Camera/Camera/CameraDeviceManager.cs index 0918110..f56f674 100644 --- a/src/Tizen.Multimedia.Camera/Camera/CameraDeviceManager.cs +++ b/src/Tizen.Multimedia.Camera/Camera/CameraDeviceManager.cs @@ -145,7 +145,7 @@ namespace Tizen.Multimedia { 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 @@ namespace Tizen.Multimedia { 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 75998ed..26a8f2a 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 Interop 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)]