Skip to content

Commit

Permalink
libobs: Fix stopping transitions that are not active
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro authored and jp9000 committed Jan 14, 2023
1 parent 22ea8f4 commit eb35b07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libobs/obs-source-transition.c
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit eb35b07

Please sign in to comment.