GstStartup: Add back LIBSOUP3_LIBRARY_PATH

This commit is contained in:
Jonas Kvinge 2023-10-15 07:46:49 +02:00
parent 2083e008ab
commit bf52afa21d
1 changed files with 10 additions and 0 deletions

View File

@ -187,4 +187,14 @@ void GstStartup::SetEnvironment() {
Utilities::SetEnv("GST_REGISTRY", gst_registry_filename);
#endif
#ifdef Q_OS_MACOS
const QString libsoup_library_path = QDir::cleanPath(app_path + "/../Frameworks/libsoup-3.0.0.dylib");
if (QFile::exists(libsoup_library_path)) {
Utilities::SetEnv("LIBSOUP3_LIBRARY_PATH", libsoup_library_path);
}
else {
qLog(Debug) << "libsoup library" << libsoup_library_path << "does not exist.";
}
#endif
}