UI: Fix transition enumeration

Fixes issue where sometimes the transition loop would return a null
transition.
This commit is contained in:
Clayton Groeneveld
2020-08-23 03:07:52 -05:00
committed by jp9000
parent b8e2220b61
commit b9b990a35a
3 changed files with 40 additions and 18 deletions

View File

@@ -119,6 +119,9 @@ struct OBSStudioAPI : obs_frontend_callbacks {
OBSSource tr = main->ui->transitions->itemData(i)
.value<OBSSource>();
if (!tr)
continue;
obs_source_addref(tr);
da_push_back(sources->sources, &tr);
}