mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +00:00
source-mirror: Update first, then acquire source
Fixes a bug where a 2nd update is necessary for proper audio mirroring.
This commit is contained in:
parent
d6c903a3bd
commit
ccb8a205b0
1 changed files with 3 additions and 3 deletions
|
@ -113,12 +113,12 @@ void mirror::mirror_instance::update(obs_data_t* data)
|
|||
{
|
||||
convert_config(data);
|
||||
|
||||
// Acquire new source.
|
||||
acquire(obs_data_get_string(data, ST_SOURCE));
|
||||
|
||||
// Audio
|
||||
_audio_enabled = obs_data_get_bool(data, ST_SOURCE_AUDIO);
|
||||
_audio_layout = static_cast<speaker_layout>(obs_data_get_int(data, ST_SOURCE_AUDIO_LAYOUT));
|
||||
|
||||
// Acquire new source.
|
||||
acquire(obs_data_get_string(data, ST_SOURCE));
|
||||
}
|
||||
|
||||
void mirror::mirror_instance::load(obs_data_t* data)
|
||||
|
|
Loading…
Reference in a new issue