Skip to content

Commit e37ad16

Browse files
committed
Add canvas removed check
1 parent c878e0a commit e37ad16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎downstream-keyer-dock.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ void DownstreamKeyerDock::SceneChanged()
518518
}
519519
} else if (canvas) {
520520
obs_canvas_t *c = obs_weak_canvas_get_canvas(canvas);
521-
obs_source_t *source = c ? obs_canvas_get_channel(c, 0) : nullptr;
521+
obs_source_t *source = c && !obs_canvas_removed(c) ? obs_canvas_get_channel(c, 0) : nullptr;
522522
obs_canvas_release(c);
523523
if (source && obs_source_get_type(source) == OBS_SOURCE_TYPE_TRANSITION) {
524524
obs_source_t *ts = obs_transition_get_active_source(source);

0 commit comments

Comments
 (0)