IDecklinkOutput increases reference count on frames
Posted: Mon Nov 23, 2020 8:19 am
Hello,
i have derived my own frame class from IDeckLinkMutableVideoFrame.
When i schedule it via IDecklinkOutput::ScheduleVideoFrame the reference count is increased by IDeckLinkMutableVideoFrame::AddRef by the output object.
But when the frame is returned in IDecklinkOutput::ScheduledFrameCompleted the reference count is not decreased before.
Is that a handling by design or a bug? It is not mentioned in the SDK documentation.
I think it would be better if the output object adds and removes its "lock" on the frame on its own.
i have derived my own frame class from IDeckLinkMutableVideoFrame.
When i schedule it via IDecklinkOutput::ScheduleVideoFrame the reference count is increased by IDeckLinkMutableVideoFrame::AddRef by the output object.
But when the frame is returned in IDecklinkOutput::ScheduledFrameCompleted the reference count is not decreased before.
Is that a handling by design or a bug? It is not mentioned in the SDK documentation.
I think it would be better if the output object adds and removes its "lock" on the frame on its own.