Changes for Windows packaging

This commit is contained in:
baydam
2016-06-13 18:13:58 +01:00
parent 915a0c4fad
commit 5c64652c74
6 changed files with 56 additions and 10 deletions
+9
View File
@@ -25,6 +25,15 @@ MM_BEGIN_NAMESPACE
MainApplication::MainApplication(int &argc, char *argv[])
: QApplication(argc, argv)
{
#ifdef Q_OS_WIN
// Set GStreamer plugins path on Windows
QString pluginPath = QCoreApplication::applicationDirPath() + "/plugins";
QString libPath = QCoreApplication::applicationDirPath() + "/lib";
_putenv_s("GST_PLUGIN_PATH", pluginPath.toLocal8Bit());
_putenv_s("PATH", libPath.toLocal8Bit());
#endif
// Initialize GStreamer.
gst_init (NULL, NULL);