From 3aab2e97271adf11bdaf2911c60b954bceb84732 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Fri, 5 Jun 2020 22:56:52 +0200 Subject: [PATCH] Fix plugin group socket name generation I'm pretty sure you're supposed to be able to format `size_t` values, why does this break the stringstream? --- CHANGELOG.md | 7 +++++++ src/plugin/utils.cpp | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 313802e4..8b4e83d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Fixed + +- Fixed plugin group socket name generation. This prevented plugin groups with + the same name from being used simultaneously in multiple Wine prefixes. + ## [1.2.0] - 2020-05-29 ### Added diff --git a/src/plugin/utils.cpp b/src/plugin/utils.cpp index 9e61a21c..98244e42 100644 --- a/src/plugin/utils.cpp +++ b/src/plugin/utils.cpp @@ -170,7 +170,9 @@ boost::filesystem::path generate_group_endpoint( PluginArchitecture architecture) { std::ostringstream socket_name; socket_name << "yabridge-group-" << group_name << "-" - << std::hash{}(wine_prefix.string()) << "-"; + << std::to_string( + std::hash{}(wine_prefix.string())) + << "-"; switch (architecture) { case PluginArchitecture::vst_32: socket_name << "x32";