obs/encoder-factory: Fix incorrect proxy registration

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-06-22 22:39:35 +02:00
parent ee0a69bbf0
commit 411b716402

View file

@ -82,8 +82,8 @@ namespace obs {
// Create proxy.
std::shared_ptr<obs_encoder_info> proxy = std::make_shared<obs_encoder_info>();
memcpy(proxy.get(), &_info, sizeof(obs_encoder_info));
_info.id = iter.first->c_str();
_info.caps |= OBS_SOURCE_DEPRECATED;
proxy->id = iter.first->c_str();
proxy->caps |= OBS_ENCODER_CAP_DEPRECATED;
obs_register_encoder(proxy.get());
_proxies.emplace(name, proxy);