GstEnginePipeline: Use playbin3 with GStreamer 1.24 and higher
playbin3 is buggy with GStreamer 1.22, for some reason the bug is only reproducible on Gnome. https://forum.strawberrymusicplayer.org/topic/1506/buffering-forever/23
This commit is contained in:
parent
d7cc52bc99
commit
8a27c6a52f
|
@ -345,7 +345,7 @@ bool GstEnginePipeline::InitFromUrl(const QUrl &media_url, const QUrl &stream_ur
|
||||||
|
|
||||||
guint version_major = 0, version_minor = 0, version_micro = 0, version_nano = 0;
|
guint version_major = 0, version_minor = 0, version_micro = 0, version_nano = 0;
|
||||||
gst_plugins_base_version(&version_major, &version_minor, &version_micro, &version_nano);
|
gst_plugins_base_version(&version_major, &version_minor, &version_micro, &version_nano);
|
||||||
if (QVersionNumber::compare(QVersionNumber(static_cast<int>(version_major), static_cast<int>(version_minor)), QVersionNumber(1, 22)) >= 0) {
|
if (QVersionNumber::compare(QVersionNumber(static_cast<int>(version_major), static_cast<int>(version_minor)), QVersionNumber(1, 24)) >= 0) {
|
||||||
pipeline_ = CreateElement(QStringLiteral("playbin3"), QStringLiteral("pipeline"), nullptr, error);
|
pipeline_ = CreateElement(QStringLiteral("playbin3"), QStringLiteral("pipeline"), nullptr, error);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue