X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fdecklink_capture.cpp;h=f7016dce7c07f607455481c9d00a34e2d379ac99;hb=a839022c035b3d9387feabc02843c166ac78b469;hp=a09aefaaec14661bafcc3bedc5555d054fe19038;hpb=3a4f297238b16eb74c1dc9fee60b628d9a6d7547;p=nageru diff --git a/nageru/decklink_capture.cpp b/nageru/decklink_capture.cpp index a09aefa..f7016dc 100644 --- a/nageru/decklink_capture.cpp +++ b/nageru/decklink_capture.cpp @@ -252,7 +252,7 @@ HRESULT STDMETHODCALLTYPE DeckLinkCapture::VideoInputFrameArrived( assert(stride == width * 2); } - current_video_frame = video_frame_allocator->alloc_frame(); + current_video_frame = video_frame_allocator->create_frame(width, height, stride); if (current_video_frame.data != nullptr) { const uint8_t *src; video_frame->GetBytes((void **)&src);