Fix build

This commit is contained in:
Exeldro 2024-06-17 14:31:10 +02:00
parent b893f2d47e
commit be6fe45bf9
No known key found for this signature in database
GPG Key ID: 97269A83FC715751

View File

@ -902,8 +902,9 @@ void OBSBasicSettings::LoadOutputStats()
if (!venc) if (!venc)
continue; continue;
ec++; ec++;
video_t *video = obs_encoder_parent_video(venc); //video_t *video = obs_encoder_parent_video(venc);
refs->push_back(std::tuple<video_t *, obs_encoder_t *, obs_output_t *>(video, venc, output)); refs->push_back(std::tuple<video_t *, obs_encoder_t *, obs_output_t *>(obs_output_video(output),
venc, output));
} }
if (!ec) { if (!ec) {
refs->push_back(std::tuple<video_t *, obs_encoder_t *, obs_output_t *>(obs_output_video(output), refs->push_back(std::tuple<video_t *, obs_encoder_t *, obs_output_t *>(obs_output_video(output),
@ -938,7 +939,7 @@ void OBSBasicSettings::LoadOutputStats()
auto ph = obs_get_proc_handler(); auto ph = obs_get_proc_handler();
struct calldata cd; struct calldata cd;
calldata_init(&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"); vertical_video = (video_t *)calldata_ptr(&cd, "video");
calldata_free(&cd); calldata_free(&cd);
for (auto it = refs.begin(); it != refs.end(); it++) { for (auto it = refs.begin(); it != refs.end(); it++) {