diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp index 759ba54f7e5cd91159712bd1b5e8e327357b88aa..7e77fad17f12ca40316fed98f4cb2aa7d4f61254 100644 --- a/modules/gui/qt4/components/simple_preferences.cpp +++ b/modules/gui/qt4/components/simple_preferences.cpp @@ -471,11 +471,11 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ui.live555TransportHTTPRadio->hide(); ui.live555TransportLabel->hide(); } - CONFIG_BOOL( "avcodec-hw", hwAccelBox ); + CONFIG_GENERIC( "avcodec-hw", StringList, ui.hwAccelLabel, hwAccelModule ); #ifdef WIN32 HINSTANCE hdxva2_dll = LoadLibrary(TEXT("DXVA2.DLL") ); if( !hdxva2_dll ) - ui.hwAccelBox->setEnabled( false ); + ui.hwAccelModule->setEnabled( false ); else FreeLibrary( hdxva2_dll ); #endif diff --git a/modules/gui/qt4/ui/sprefs_input.ui b/modules/gui/qt4/ui/sprefs_input.ui index 383f1fba0235e5e9c78af68c2d7b330e20b830ff..f07b15bc93170b52e788fd1604dec1aa5a46557e 100644 --- a/modules/gui/qt4/ui/sprefs_input.ui +++ b/modules/gui/qt4/ui/sprefs_input.ui @@ -69,10 +69,17 @@ <item row="11" column="3"> <widget class="QComboBox" name="tuneBox"/> </item> - <item row="4" column="0" colspan="3"> - <widget class="QCheckBox" name="hwAccelBox"> + <item row="4" column="1" colspan="2"> + <widget class="QComboBox" name="hwAccelModule"> + </widget> + </item> + <item row="4" column="0"> + <widget class="QLabel" name="hwAccelLabel"> <property name="text"> - <string>Use GPU accelerated decoding</string> + <string>Hardware decoding acceleration</string> + </property> + <property name="buddy"> + <cstring>hwAccelModule</cstring> </property> </widget> </item> @@ -345,7 +352,7 @@ </layout> </widget> <tabstops> - <tabstop>hwAccelBox</tabstop> + <tabstop>hwAccelModule</tabstop> <tabstop>PostProcLevel</tabstop> <tabstop>loopFilterBox</tabstop> <tabstop>presetBox</tabstop>