[channels,video] fix missing return checks

This commit is contained in:
Armin Novak
2026-03-03 12:30:40 +01:00
parent ce3f205cd6
commit 1220c7af1c

View File

@@ -690,7 +690,7 @@ static void video_timer(VideoClientContext* video, UINT64 now)
EnterCriticalSection(&priv->framesLock); EnterCriticalSection(&priv->framesLock);
do do
{ {
VideoFrame* peekFrame = (VideoFrame*)Queue_Peek(priv->frames); const VideoFrame* peekFrame = (VideoFrame*)Queue_Peek(priv->frames);
if (!peekFrame) if (!peekFrame)
break; break;
@@ -703,8 +703,7 @@ static void video_timer(VideoClientContext* video, UINT64 now)
priv->droppedFrames++; priv->droppedFrames++;
VideoFrame_free(&frame); VideoFrame_free(&frame);
} }
frame = peekFrame; frame = Queue_Dequeue(priv->frames);
Queue_Dequeue(priv->frames);
} while (1); } while (1);
LeaveCriticalSection(&priv->framesLock); LeaveCriticalSection(&priv->framesLock);