Skip to content

Commit

Permalink
Some more compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Oct 18, 2023
1 parent 628fcc8 commit 4eea4da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions host/plugin-host.cc
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ void PluginHost::eventLoopSetFdNotifierFlags(int fd, int flags) {
it->second->rd.reset(new QSocketNotifier((qintptr)fd, QSocketNotifier::Read));
QObject::connect(it->second->rd.get(), &QSocketNotifier::activated, [this, fd] {
checkForMainThread();
h->_plugin->posixFdSupportOnFd(fd, CLAP_POSIX_FD_READ);
_plugin->posixFdSupportOnFd(fd, CLAP_POSIX_FD_READ);
});
}
it->second->rd->setEnabled(true);
Expand All @@ -518,7 +518,7 @@ void PluginHost::eventLoopSetFdNotifierFlags(int fd, int flags) {
it->second->wr.reset(new QSocketNotifier((qintptr)fd, QSocketNotifier::Write));
QObject::connect(it->second->wr.get(), &QSocketNotifier::activated, [this, fd] {
checkForMainThread();
h->_plugin->posixFdSupportOnFd(fd, CLAP_POSIX_FD_WRITE);
_plugin->posixFdSupportOnFd(fd, CLAP_POSIX_FD_WRITE);
});
}
it->second->wr->setEnabled(true);
Expand Down Expand Up @@ -921,12 +921,12 @@ void PluginHost::paramsRescan(uint32_t flags) noexcept {
}

// 2. scan the params.
auto count = _plugin.paramsCount();
auto count = _plugin->paramsCount();
std::unordered_set<clap_id> paramIds(count * 2);

for (int32_t i = 0; i < count; ++i) {
clap_param_info info;
if (!_plugin.paramsGetInfo(i, &info))
if (!_plugin->paramsGetInfo(i, &info))
throw std::logic_error("clap_plugin_params.get_info did return false!");

if (info.id == CLAP_INVALID_ID) {
Expand Down

0 comments on commit 4eea4da

Please sign in to comment.