mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user