UI: Fix transition enumeration
Fixes issue where sometimes the transition loop would return a null transition.
This commit is contained in:
parent
b8e2220b61
commit
b9b990a35a
3 changed files with 40 additions and 18 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue