Improvments to gstreamer backend and settings +++

- Fixed bug not setting environment for gstreamer before initialization
- Fixed windows directsound device
- Fixed crash on failure to create gstreamer element
- Fixed crash when switching backend
- Don't stop playback if equalizer or replay gain fails in gstreamer
- Improvments to backend settings
- Fixed backend settings to work for windows
- Fixed replay gain settings not working
- Fixed right click menu for album showing in statusview even when no song was playing
- Removed redundant code
This commit is contained in:
Jonas Kvinge
2018-04-05 21:40:05 +02:00
parent 6bbc1271e4
commit 43bf7e3ca8
21 changed files with 286 additions and 328 deletions

View File

@@ -28,11 +28,6 @@
#include <glib-object.h>
#include <glib.h>
#ifdef HAVE_GSTREAMER
#include <gst/gst.h>
#include <gst/pbutils/pbutils.h>
#endif
#ifdef Q_OS_UNIX
#include <unistd.h>
#endif // Q_OS_UNIX
@@ -89,10 +84,6 @@
#include "core/iconloader.h"
#include "core/systemtrayicon.h"
#include "core/scangiomodulepath.h"
#include "engine/enginebase.h"
#ifdef HAVE_GSTREAMER
#include "engine/gstengine.h"
#endif
#include "widgets/osd.h"
@@ -116,12 +107,6 @@ int main(int argc, char* argv[]) {
// Do Mac specific startup to get media keys working.
// This must go before QApplication initialisation.
mac::MacMain();
if (QSysInfo::MacintoshVersion > QSysInfo::MV_10_8) {
// Work around 10.9 issue.
// https://bugreports.qt-project.org/browse/QTBUG-32789
QFont::insertSubstitution(".Lucida Grande UI", "Lucida Grande");
}
#endif
#if defined(Q_OS_WIN32) || defined(Q_OS_DARWIN)
@@ -241,11 +226,6 @@ int main(int argc, char* argv[]) {
#ifdef HAVE_DBUS
mpris::Mpris mpris(&app);
#endif
#ifdef HAVE_GSTREAMER
gst_init(nullptr, nullptr);
gst_pb_utils_init();
#endif
// Window
MainWindow w(&app, tray_icon.get(), &osd, options);