Integration of Shmdata in vimix

Unified menu in output window for streaming (for SRT, Shmdata and peer to peer). Cleanup SRT broadcaster and bugfix on FrameGrabber default frame timing.
This commit is contained in:
Bruno Herbelin
2022-12-06 23:21:17 +01:00
parent 07e8f489c1
commit da06cf52ec
6 changed files with 124 additions and 52 deletions

View File

@@ -231,10 +231,15 @@ bool Rendering::init()
g_setenv ("GST_PLUGIN_SCANNER", plugins_scanner.c_str(), TRUE);
}
std::string plugins_path;
const gchar *c = g_getenv("GST_PLUGIN_PATH");
std::string plugins_path = c != NULL ? std::string(c) : "";
std::string local_plugin_path = SystemToolkit::cwd_path() + "gstreamer-1.0";
if ( SystemToolkit::file_exists(local_plugin_path))
plugins_path = local_plugin_path;
if ( SystemToolkit::file_exists(local_plugin_path)){
if (!plugins_path.empty())
plugins_path += ":";
plugins_path += local_plugin_path;
}
#ifdef GSTREAMER_SHMDATA_PLUGIN
std::string shmdata_plugin_path = GSTREAMER_SHMDATA_PLUGIN;