Mercurial > hg > piper-cpp
comparison vamp-support/PreservingPluginHandleMapper.h @ 277:5ac494d998b2
Add a bit more info
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Wed, 17 Oct 2018 15:43:27 +0100 |
parents | 7ada63fe1084 |
children | 4b581a498981 |
comparison
equal
deleted
inserted
replaced
276:8c8b5fe47b33 | 277:5ac494d998b2 |
---|---|
92 virtual Vamp::Plugin *handleToPlugin(Handle h) const noexcept { | 92 virtual Vamp::Plugin *handleToPlugin(Handle h) const noexcept { |
93 if (h == INVALID_HANDLE) return nullptr; | 93 if (h == INVALID_HANDLE) return nullptr; |
94 if (h == m_handle) return m_plugin; | 94 if (h == m_handle) return m_plugin; |
95 if (m_handle != INVALID_HANDLE) { | 95 if (m_handle != INVALID_HANDLE) { |
96 std::cerr << "PreservingPluginHandleMapper: m_handle " << m_handle | 96 std::cerr << "PreservingPluginHandleMapper: m_handle " << m_handle |
97 << " is non-null when a new handle is provided, but " | 97 << " is non-null when a new handle (" << h |
98 << ") is provided, but " | |
98 << "this stupid stub class can only handle one handle" | 99 << "this stupid stub class can only handle one handle" |
99 << std::endl; | 100 << std::endl; |
100 return nullptr; | 101 return nullptr; |
101 } | 102 } |
102 m_handle = h; | 103 m_handle = h; |