Skip to content

Commit

Permalink
[Camera] Fix CameraDeviceManager bug (Samsung#5959)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsgwon authored Feb 20, 2024
1 parent dfb1574 commit 7c954bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Tizen.Multimedia.Camera/Camera/CameraDeviceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Tizen.Multimedia.Camera/Interop/Interop.Camera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 7c954bb

Please sign in to comment.