UI: Fix output channels not being deleted
Output channel 6 was not being deleted, so use for loop to delete all possible channels.master
parent
bf4a917751
commit
08426c8710
|
@ -4125,12 +4125,9 @@ void OBSBasic::ClearSceneData()
|
||||||
|
|
||||||
ClearProjectors();
|
ClearProjectors();
|
||||||
|
|
||||||
obs_set_output_source(0, nullptr);
|
for (int i = 0; i < MAX_CHANNELS; i++)
|
||||||
obs_set_output_source(1, nullptr);
|
obs_set_output_source(i, nullptr);
|
||||||
obs_set_output_source(2, nullptr);
|
|
||||||
obs_set_output_source(3, nullptr);
|
|
||||||
obs_set_output_source(4, nullptr);
|
|
||||||
obs_set_output_source(5, nullptr);
|
|
||||||
lastScene = nullptr;
|
lastScene = nullptr;
|
||||||
swapScene = nullptr;
|
swapScene = nullptr;
|
||||||
programScene = nullptr;
|
programScene = nullptr;
|
||||||
|
|
Loading…
Reference in New Issue