mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-06 15:01:18 +12:00
Small
This commit is contained in:
parent
95f5295e0c
commit
791e358bf7
2 changed files with 3 additions and 2 deletions
|
@ -12,6 +12,7 @@ CameraManager::CameraManager()
|
|||
m_nv12Buffer(CAMERA_PITCH * CAMERA_HEIGHT * 3 / 2),
|
||||
m_refCount(0)
|
||||
{
|
||||
// Set default device if it exists
|
||||
if (Cap_getDeviceCount(m_ctx) > 0)
|
||||
m_device = 0;
|
||||
}
|
||||
|
@ -21,7 +22,7 @@ CameraManager::~CameraManager()
|
|||
Cap_releaseContext(m_ctx);
|
||||
}
|
||||
|
||||
void CameraManager::SetDevice(unsigned deviceNo)
|
||||
void CameraManager::SetDevice(uint32 deviceNo)
|
||||
{
|
||||
std::scoped_lock lock(m_mutex);
|
||||
if (m_device == deviceNo)
|
||||
|
|
|
@ -19,7 +19,7 @@ class CameraManager : public Singleton<CameraManager>
|
|||
CameraManager();
|
||||
~CameraManager();
|
||||
|
||||
void SetDevice(unsigned deviceNo);
|
||||
void SetDevice(uint32 deviceNo);
|
||||
|
||||
bool Open(bool weak);
|
||||
void Close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue