Drop Qt 5 support
Qt 6 has been available for almost 4 years. Qt 5 is no longer officially supported by Qt for opensource, it's time to drop Qt 5.
This commit is contained in:
@@ -485,16 +485,8 @@ bool GstEnginePipeline::InitAudioBin(QString &error) {
|
||||
|
||||
if (device_.isValid()) {
|
||||
if (g_object_class_find_property(G_OBJECT_GET_CLASS(audiosink_), "device")) {
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
switch (device_.metaType().id()) {
|
||||
#else
|
||||
switch (device_.type()) {
|
||||
#endif
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
case QMetaType::QString:{
|
||||
#else
|
||||
case QVariant::String:{
|
||||
#endif
|
||||
const QString device = device_.toString();
|
||||
if (!device.isEmpty()) {
|
||||
qLog(Debug) << "Setting device" << device << "for" << output_;
|
||||
@@ -505,11 +497,7 @@ bool GstEnginePipeline::InitAudioBin(QString &error) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
case QMetaType::QByteArray:{
|
||||
#else
|
||||
case QVariant::ByteArray:{
|
||||
#endif
|
||||
QByteArray device = device_.toByteArray();
|
||||
if (!device.isEmpty()) {
|
||||
qLog(Debug) << "Setting device" << device_ << "for" << output_;
|
||||
@@ -517,31 +505,19 @@ bool GstEnginePipeline::InitAudioBin(QString &error) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
case QMetaType::LongLong:{
|
||||
#else
|
||||
case QVariant::LongLong:{
|
||||
#endif
|
||||
qint64 device = device_.toLongLong();
|
||||
qLog(Debug) << "Setting device" << device << "for" << output_;
|
||||
g_object_set(G_OBJECT(audiosink_), "device", device, nullptr);
|
||||
break;
|
||||
}
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
case QMetaType::Int:{
|
||||
#else
|
||||
case QVariant::Int:{
|
||||
#endif
|
||||
int device = device_.toInt();
|
||||
qLog(Debug) << "Setting device" << device << "for" << output_;
|
||||
g_object_set(G_OBJECT(audiosink_), "device", device, nullptr);
|
||||
break;
|
||||
}
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
case QMetaType::QUuid:{
|
||||
#else
|
||||
case QVariant::Uuid:{
|
||||
#endif
|
||||
QUuid device = device_.toUuid();
|
||||
qLog(Debug) << "Setting device" << device << "for" << output_;
|
||||
g_object_set(G_OBJECT(audiosink_), "device", device, nullptr);
|
||||
@@ -553,16 +529,8 @@ bool GstEnginePipeline::InitAudioBin(QString &error) {
|
||||
}
|
||||
}
|
||||
else if (g_object_class_find_property(G_OBJECT_GET_CLASS(audiosink_), "device-clsid")) {
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
switch (device_.metaType().id()) {
|
||||
#else
|
||||
switch (device_.type()) {
|
||||
#endif
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
case QMetaType::QString:{
|
||||
#else
|
||||
case QVariant::String:{
|
||||
#endif
|
||||
QString device = device_.toString();
|
||||
if (!device.isEmpty()) {
|
||||
qLog(Debug) << "Setting device-clsid" << device << "for" << output_;
|
||||
@@ -570,11 +538,7 @@ bool GstEnginePipeline::InitAudioBin(QString &error) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
case QMetaType::QByteArray:{
|
||||
#else
|
||||
case QVariant::ByteArray:{
|
||||
#endif
|
||||
QByteArray device = device_.toByteArray();
|
||||
if (!device.isEmpty()) {
|
||||
qLog(Debug) << "Setting device-clsid" << device_ << "for" << output_;
|
||||
@@ -588,16 +552,8 @@ bool GstEnginePipeline::InitAudioBin(QString &error) {
|
||||
}
|
||||
}
|
||||
else if (g_object_class_find_property(G_OBJECT_GET_CLASS(audiosink_), "port-pattern")) {
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
switch (device_.metaType().id()) {
|
||||
#else
|
||||
switch (device_.type()) {
|
||||
#endif
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
case QMetaType::QString:{
|
||||
#else
|
||||
case QVariant::String:{
|
||||
#endif
|
||||
QString port_pattern = device_.toString();
|
||||
if (!port_pattern.isEmpty()) {
|
||||
qLog(Debug) << "Setting port pattern" << port_pattern << "for" << output_;
|
||||
@@ -606,11 +562,7 @@ bool GstEnginePipeline::InitAudioBin(QString &error) {
|
||||
break;
|
||||
}
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
case QMetaType::QByteArray:{
|
||||
#else
|
||||
case QVariant::ByteArray:{
|
||||
#endif
|
||||
QByteArray port_pattern = device_.toByteArray();
|
||||
if (!port_pattern.isEmpty()) {
|
||||
qLog(Debug) << "Setting port pattern" << port_pattern << "for" << output_;
|
||||
|
||||
Reference in New Issue
Block a user