UI: Simplify fade to black code

Removes unnecessary function call.
This commit is contained in:
Clayton Groeneveld 2021-05-02 18:28:44 -05:00 committed by Jim
parent a7b20fcd2a
commit c2bc5e675c

View File

@ -415,10 +415,8 @@ void OBSBasic::TransitionToScene(OBSSource source, bool force,
}
if (black && !prevFTBSource) {
prevFTBSource = source;
source = nullptr;
prevFTBSource =
obs_transition_get_active_source(transition);
obs_source_release(prevFTBSource);
} else if (black && prevFTBSource) {
source = prevFTBSource;
prevFTBSource = nullptr;