Major BugFix: avoid default gst g_main_context

Do NOT update g_main_context at RenderingManager update. Do not use g_main_context for Dialogs. Do not rely on default g_main_context for Device discoverer (implemented a thread save g_main_loop dedicated).
This commit is contained in:
Bruno Herbelin
2022-01-06 20:20:30 +01:00
parent d4f370c071
commit 3df6ffe280
8 changed files with 114 additions and 98 deletions

View File

@@ -30,7 +30,6 @@
#include "ControlManager.h"
#include "Connection.h"
#include "Metronome.h"
#include "DeviceSource.h"
#if defined(APPLE)
extern "C"{
@@ -105,29 +104,24 @@ int main(int argc, char *argv[])
return 1;
///
/// CONTROLLER INIT
/// CONTROLLER INIT (OSC)
///
Control::manager().init();
///
/// METRONOME INIT
/// METRONOME INIT (Ableton Link)
///
if ( !Metronome::manager().init() )
return 1;
///
/// RENDERING INIT
/// RENDERING & GST INIT
///
if ( !Rendering::manager().init() )
return 1;
///
/// DEVICES INIT
///
Device::manager().init();
///
/// UI INIT
/// IMGUI INIT
///
if ( !UserInterface::manager().Init() )
return 1;