Browse Source

UI: Simplify fade to black code

Removes unnecessary function call.
Clayton Groeneveld 4 years ago
parent
commit
c2bc5e675c
1 changed files with 1 additions and 3 deletions
  1. 1 3
      UI/window-basic-main-transitions.cpp

+ 1 - 3
UI/window-basic-main-transitions.cpp

@@ -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;