encoder/ffmpeg/nvenc: Swap parameter names in migration code

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2021-11-08 12:11:52 +01:00
parent 50a23799b0
commit ab6ba5ee4c

View file

@ -759,9 +759,9 @@ void streamfx::encoder::ffmpeg::handler::nvenc::migrate(obs_data_t* settings, ui
// Only test for A.B.C in A.B.C.D // Only test for A.B.C in A.B.C.D
version = version & STREAMFX_MASK_UPDATE; version = version & STREAMFX_MASK_UPDATE;
#define COPY_UNSET(TYPE, OLDNAME, NEWNAME) \ #define COPY_UNSET(TYPE, NAME, OLDNAME) \
if (obs_data_has_user_value(settings, OLDNAME)) { \ if (obs_data_has_user_value(settings, OLDNAME)) { \
obs_data_set_##TYPE(settings, NEWNAME, obs_data_get_##TYPE(settings, OLDNAME)); \ obs_data_set_##TYPE(settings, NAME, obs_data_get_##TYPE(settings, OLDNAME)); \
obs_data_unset_user_value(settings, OLDNAME); \ obs_data_unset_user_value(settings, OLDNAME); \
} }