filter-transform: Fix function location

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-03-28 16:24:26 +01:00
parent 18b3cd30bf
commit e66acbeb98

View file

@ -113,12 +113,6 @@ transform::transform_instance::~transform_instance()
_mipmap_texture.reset();
}
void transform::transform_instance::load(obs_data_t* settings)
{
migrate_settings(settings);
update(settings);
}
inline void migrate_settings(obs_data_t* settings)
{
uint64_t version = static_cast<uint64_t>(obs_data_get_int(settings, S_VERSION));
@ -132,6 +126,12 @@ inline void migrate_settings(obs_data_t* settings)
obs_data_set_int(settings, S_VERSION, STREAMFX_VERSION);
}
void transform::transform_instance::load(obs_data_t* settings)
{
migrate_settings(settings);
update(settings);
}
void transform::transform_instance::update(obs_data_t* settings)
{
// Camera