mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
libobs: Fix stopping transitions that are not active
This commit is contained in:
parent
22ea8f4e1f
commit
eb35b07f44
@ -439,7 +439,7 @@ void obs_transition_set(obs_source_t *transition, obs_source_t *source)
|
||||
obs_source_t *s[2];
|
||||
bool active[2];
|
||||
|
||||
if (!transition_valid(transition, "obs_transition_clear"))
|
||||
if (!transition_valid(transition, "obs_transition_set"))
|
||||
return;
|
||||
|
||||
source = obs_source_get_ref(source);
|
||||
@ -893,6 +893,9 @@ bool obs_transition_video_render_direct(obs_source_t *transition,
|
||||
transition->transitioning_video = false;
|
||||
video_stopped = true;
|
||||
|
||||
if (!obs_source_active(transition))
|
||||
transition->transitioning_audio = false;
|
||||
|
||||
if (!transition->transitioning_audio) {
|
||||
obs_transition_stop(transition);
|
||||
stopped = true;
|
||||
|
Loading…
Reference in New Issue
Block a user