Removing old way to select hardware support

Removing the decode setting makes hardware supported decode break.
There must be some hidden dependency on that variable somewhere
which might also be responsible for the problems with nVidia on
Linux. TODO Remove the dependency
This commit is contained in:
eisneinechse
2019-04-21 10:04:24 -07:00
parent 5185757886
commit 825e38ac9d
3 changed files with 23 additions and 11 deletions

View File

@@ -40,9 +40,13 @@ Settings *Settings::Instance()
if (!m_pInstance) {
// Create the actual instance of logger only once
m_pInstance = new Settings;
// REMOVE_HW_OLD
// Removing this breaks decode completely
// Find bug in libopenshot
m_pInstance->HARDWARE_DECODE = false;
m_pInstance->HARDWARE_DECODER = 0;
m_pInstance->HARDWARE_ENCODE = false;
// REMOVE_HW_OLD
//m_pInstance->HARDWARE_ENCODE = false;
m_pInstance->HIGH_QUALITY_SCALING = false;
m_pInstance->MAX_WIDTH = 0;
m_pInstance->MAX_HEIGHT = 0;