From 5fca8178c6d64141feb66623fcc8d38d640a2ffe Mon Sep 17 00:00:00 2001 From: Haesu Gwon Date: Tue, 20 Feb 2024 13:37:57 +0900 Subject: [PATCH] [Camera] Fix CameraDeviceManager bug (#5958) --- 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 535a781..d9bfbec 100644 --- a/src/Tizen.Multimedia.Camera/Camera/CameraDeviceManager.cs +++ b/src/Tizen.Multimedia.Camera/Camera/CameraDeviceManager.cs @@ -123,7 +123,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; } @@ -138,7 +138,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)] -- 2.7.4