From 04b0d632aa931fa5561af3ec0608ce11af594cb6 Mon Sep 17 00:00:00 2001 From: Norihiro Kamae Date: Wed, 21 Jul 2021 19:18:44 +0900 Subject: [PATCH] UI: Fix da_push_back taking a wrong type of item A pointer to `OBSSource` was passed to an argument that expect a pointer to `obs_source_t *`. Since the current implementation of a class `OBSSource` has a member `obs_source_t *obj` at first and the class does not have any virtual member functions, most implementation should work correctly. --- UI/api-interface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/api-interface.cpp b/UI/api-interface.cpp index 3a5413a05..3df04aff8 100644 --- a/UI/api-interface.cpp +++ b/UI/api-interface.cpp @@ -117,8 +117,8 @@ struct OBSStudioAPI : obs_frontend_callbacks { struct obs_frontend_source_list *sources) override { for (int i = 0; i < main->ui->transitions->count(); i++) { - OBSSource tr = main->ui->transitions->itemData(i) - .value(); + obs_source_t *tr = main->ui->transitions->itemData(i) + .value(); if (!tr) continue;