auto it = callbacks.find(callback_id);
if (it == callbacks.end()) {
ERR("Unknown callback_id(%d)", callback_id);
- throw AittException(AittException::INVALID_ARG);
+ return;
}
callbacks.erase(it);
}
else if (src_state.compare("STOP") == 0)
HandleRemovedClient(discovery_id);
else
- ERR("Invalid message %s", src_state);
+ ERR("Invalid message %s", src_state.c_str());
}
void SinkStreamManager::HandleStartStream(const std::string &discovery_id)
if (sink_state.compare("STOP") == 0)
HandleRemovedClient(discovery_id);
else
- ERR("Invalid message %s", sink_state);
+ ERR("Invalid message %s", sink_state.c_str());
}
void SrcStreamManager::HandleStreamInfo(const std::string &discovery_id,
return modules.Get(protocol).Subscribe(
topic,
[handle, cb, protocol](AittMsg *msg, const void *data, const int datalen,
- void *user_data) {
+ void *userdata) {
msg->SetID(handle);
msg->SetProtocol(protocol);
- return cb(msg, data, datalen, user_data);
+ return cb(msg, data, datalen, userdata);
},
user_data, qos);
}