From a9da8811fca130561a8aa87e0c63a4cb106ab105 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Mon, 17 Jun 2019 23:01:38 +0200 Subject: [PATCH] Turn off ssl-strict in gst pipeline --- src/engine/gstenginepipeline.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/engine/gstenginepipeline.cpp b/src/engine/gstenginepipeline.cpp index 831e78655..c075049fc 100644 --- a/src/engine/gstenginepipeline.cpp +++ b/src/engine/gstenginepipeline.cpp @@ -420,6 +420,7 @@ bool GstEnginePipeline::InitFromUrl(const QByteArray &media_url, const QUrl orig if (!pipeline_) return false; g_object_set(G_OBJECT(pipeline_), "uri", media_url.constData(), nullptr); + CHECKED_GCONNECT(G_OBJECT(pipeline_), "about-to-finish", &AboutToFinishCallback, this); CHECKED_GCONNECT(G_OBJECT(pipeline_), "pad-added", &NewPadCallback, this); @@ -888,13 +889,15 @@ void GstEnginePipeline::SourceSetupCallback(GstPlayBin *bin, GParamSpec *pspec, } if (g_object_class_find_property(G_OBJECT_GET_CLASS(element), "user-agent")) { - QString user_agent = QString("%1 %2").arg(QCoreApplication::applicationName(), QCoreApplication::applicationVersion()); g_object_set(element, "user-agent", user_agent.toUtf8().constData(), nullptr); + QString user_agent = QString("%1 %2").arg(QCoreApplication::applicationName(), QCoreApplication::applicationVersion()); + g_object_set(element, "user-agent", user_agent.toUtf8().constData(), nullptr); + g_object_set(element, "ssl-strict", FALSE, nullptr); -#ifdef Q_OS_MACOS - g_object_set(element, "tls-database", instance->engine_->tls_database(), nullptr); - g_object_set(element, "ssl-use-system-ca-file", false, nullptr); - g_object_set(element, "ssl-strict", TRUE, nullptr); -#endif +//#ifdef Q_OS_MACOS + //g_object_set(element, "tls-database", instance->engine_->tls_database(), nullptr); + //g_object_set(element, "ssl-use-system-ca-file", false, nullptr); + //g_object_set(element, "ssl-strict", TRUE, nullptr); +//#endif } // If the pipeline was buffering we stop that now.