mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
UI: Fix cast of pointer type at invalid current scene setting on load
This commit is contained in:
parent
c5a01b7df4
commit
2fa77c4021
@ -1293,10 +1293,8 @@ retryScene:
|
||||
|
||||
if (!curScene) {
|
||||
auto find_scene_cb = [](void *source_ptr, obs_source_t *scene) {
|
||||
OBSSourceAutoRelease &source =
|
||||
reinterpret_cast<OBSSourceAutoRelease &>(
|
||||
source_ptr);
|
||||
source = obs_source_get_ref(scene);
|
||||
*static_cast<OBSSourceAutoRelease *>(source_ptr) =
|
||||
obs_source_get_ref(scene);
|
||||
return false;
|
||||
};
|
||||
obs_enum_scenes(find_scene_cb, &curScene);
|
||||
|
Loading…
Reference in New Issue
Block a user