From be6fe45bf98ec344cae3041b435706a4b5d7c325 Mon Sep 17 00:00:00 2001 From: Exeldro Date: Mon, 17 Jun 2024 14:31:10 +0200 Subject: [PATCH] Fix build --- config-dialog.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config-dialog.cpp b/config-dialog.cpp index f623cb0..90e53d9 100644 --- a/config-dialog.cpp +++ b/config-dialog.cpp @@ -902,8 +902,9 @@ void OBSBasicSettings::LoadOutputStats() if (!venc) continue; ec++; - video_t *video = obs_encoder_parent_video(venc); - refs->push_back(std::tuple(video, venc, output)); + //video_t *video = obs_encoder_parent_video(venc); + refs->push_back(std::tuple(obs_output_video(output), + venc, output)); } if (!ec) { refs->push_back(std::tuple(obs_output_video(output), @@ -938,7 +939,7 @@ void OBSBasicSettings::LoadOutputStats() auto ph = obs_get_proc_handler(); struct calldata cd; calldata_init(&cd); - if(proc_handler_call(ph, "aitum_vertical_get_video", &cd)) + if (proc_handler_call(ph, "aitum_vertical_get_video", &cd)) vertical_video = (video_t *)calldata_ptr(&cd, "video"); calldata_free(&cd); for (auto it = refs.begin(); it != refs.end(); it++) {