Browse Source

obs-transitions: Fix annoying log message

This would cause a null pointer check log message because matte_source
only exists when using an explicit separate video for track matte
stingers. Instead, explicitly set matte_ph to null if matt_source is
null to avoid the null pointer check logging.
jp9000 4 years ago
parent
commit
d4780e061c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      plugins/obs-transitions/transition-stinger.c

+ 3 - 1
plugins/obs-transitions/transition-stinger.c

@@ -406,7 +406,9 @@ static void stinger_transition_start(void *data)
 		proc_handler_t *ph =
 			obs_source_get_proc_handler(s->media_source);
 		proc_handler_t *matte_ph =
-			obs_source_get_proc_handler(s->matte_source);
+			s->matte_source
+				? obs_source_get_proc_handler(s->matte_source)
+				: NULL;
 
 		if (s->transitioning) {
 			proc_handler_call(ph, "restart", &cd);