File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -478,14 +478,16 @@ void SettingsHandler::Load(QSettings* settingsToLoadFrom)
478478#if defined(Q_OS_WIN)
479479 const char * backend = " windows" ;
480480 LogHandler::Info (" Load Settings: OS is Windows" );
481+ putenv (const_cast <char *>(" QT_MEDIA_BACKEND=windows" ));
481482#elif defined(Q_OS_LINUX)
482483 const char * backend = " gstreamer" ;
483484 LogHandler::Info (" Load Settings: OS is Linux" );
485+ setenv (" QT_MEDIA_BACKEND" , backend, 1 );
484486#else // defined(Q_OS_MAC) MAC_OS, IOS or ANDROID
485487 LogHandler::Info (" Load Settings: OS is Other" );
486488 const char * backend = " darwin" ;
487- #endif
488489 setenv (" QT_MEDIA_BACKEND" , backend, 1 );
490+ #endif
489491 LogHandler::Info (" Using media backend: " +QString (backend));
490492 }
491493
Original file line number Diff line number Diff line change 55#include " settingsbase.h"
66#include " ../lookup/enum.h"
77
8- class MediaLibrarySettings : public SettingsBase
8+ #include " XTEngine_global.h"
9+
10+ class XTENGINE_EXPORT MediaLibrarySettings : public SettingsBase
911{
1012 Q_OBJECT
1113public:
Original file line number Diff line number Diff line change 44#include < QObject>
55#include < QSettings>
66
7- class SettingsBase : public QObject
7+ #include " XTEngine_global.h"
8+
9+ class XTENGINE_EXPORT SettingsBase : public QObject
810{
911 Q_OBJECT
1012public:
You can’t perform that action at this time.
0 commit comments