1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-23 08:20:01 +01:00

Fix setting device on windows (#6081)

This commit is contained in:
Jonas Kvinge 2018-06-12 10:27:10 +02:00 committed by John Maguire
parent 1b4955cc4a
commit da648fd08f

View File

@ -21,7 +21,6 @@
#include <QDir>
#include <QPair>
#include <QRegExp>
#include <QUuid>
#include "bufferconsumer.h"
#include "config.h"
@ -253,14 +252,11 @@ bool GstEnginePipeline::Init() {
g_object_set(G_OBJECT(audiosink_), "device",
device_.toString().toUtf8().constData(), nullptr);
break;
#ifdef Q_OS_WIN32
case QVariant::ByteArray: {
GUID guid = QUuid(device_.toByteArray());
g_object_set(G_OBJECT(audiosink_), "device", &guid, nullptr);
g_object_set(G_OBJECT(audiosink_), "device",
device_.toByteArray().constData(), nullptr);
break;
}
#endif // Q_OS_WIN32
default:
qLog(Warning) << "Unknown device type" << device_;