mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 12:10:09 +02:00
Handle all dispatch calls from the main thread
Some plugins apparently assume that all events (or at least some specific ones) are sent from the thread it was created on and will segfault otherwise. The is the case for Melda plugins.
This commit is contained in:
@@ -35,8 +35,8 @@ int main(int argc, char* argv[]) {
|
||||
try {
|
||||
PluginBridge bridge(plugin_dll_path, socket_endpoint_path);
|
||||
|
||||
// Block the main thread until the plugin shuts down
|
||||
bridge.wait();
|
||||
// Blocks the main thread until the plugin shuts down
|
||||
bridge.handle_dispatch();
|
||||
} catch (const std::runtime_error& error) {
|
||||
std::cerr << "Error while initializing Wine VST host:" << std::endl;
|
||||
std::cerr << error.what() << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user