Don't query a device ID when using runtime config
The settings are not going to be persisted, and the device is not going to change between the setting and running the decoder.
This commit is contained in:
parent
56aab6a4cc
commit
0bb8be4b50
@ -2925,7 +2925,7 @@ STDMETHODIMP CLAVVideo::SetHWAccelDeviceIndex(LAVHWAccel hwAccel, DWORD dwIndex,
|
||||
{
|
||||
HRESULT hr = S_OK;
|
||||
|
||||
if (dwIndex != LAVHWACCEL_DEVICE_DEFAULT && dwDeviceIdentifier == 0)
|
||||
if (dwIndex != LAVHWACCEL_DEVICE_DEFAULT && dwDeviceIdentifier == 0 && !m_bRuntimeConfig)
|
||||
hr = GetHWAccelDeviceInfo(hwAccel, dwIndex, nullptr, &dwDeviceIdentifier);
|
||||
|
||||
if (SUCCEEDED(hr))
|
||||
|
Loading…
Reference in New Issue
Block a user