From 6475aa7358d9fa446f3985bce64ed664fafbabc6 Mon Sep 17 00:00:00 2001 From: Martin Piatka Date: Wed, 9 Oct 2024 10:16:34 +0200 Subject: [PATCH] vdisp/multiplier: Copy frame metadata The metadate is useful in some cases like the decklink synchronized mode. Fixes GH-419 --- src/video_display/multiplier.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video_display/multiplier.cpp b/src/video_display/multiplier.cpp index 8efdb67a9..c5c6d291e 100644 --- a/src/video_display/multiplier.cpp +++ b/src/video_display/multiplier.cpp @@ -171,6 +171,7 @@ static void display_multiplier_worker(void *state) for (auto& disp : s->displays) { struct video_frame *real_display_frame = display_get_frame(disp.get()); memcpy(real_display_frame->tiles[0].data, frame->tiles[0].data, frame->tiles[0].data_len); + memcpy(&real_display_frame->VF_METADATA_START, &frame->VF_METADATA_START, VF_METADATA_SIZE); display_put_frame(disp.get(), real_display_frame, PUTF_BLOCKING); }