Add API to wake a waiting thread in LiWaitForNextVideoFrame()

This commit is contained in:
Cameron Gutman 2022-01-17 14:12:11 -06:00
commit 921b59c467
4 changed files with 23 additions and 1 deletions

View file

@ -221,6 +221,10 @@ bool LiPeekNextVideoFrame(PDECODE_UNIT* decodeUnit) {
return true;
}
void LiWakeWaitForVideoFrame(void) {
LbqSignalQueueUserWake(&decodeUnitQueue);
}
// Cleanup a decode unit by freeing the buffer chain and the holder
void LiCompleteVideoFrame(VIDEO_FRAME_HANDLE handle, int drStatus) {
PQUEUED_DECODE_UNIT qdu = handle;