mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[channels,video] fix missing return checks
This commit is contained in:
@@ -690,7 +690,7 @@ static void video_timer(VideoClientContext* video, UINT64 now)
|
||||
EnterCriticalSection(&priv->framesLock);
|
||||
do
|
||||
{
|
||||
VideoFrame* peekFrame = (VideoFrame*)Queue_Peek(priv->frames);
|
||||
const VideoFrame* peekFrame = (VideoFrame*)Queue_Peek(priv->frames);
|
||||
if (!peekFrame)
|
||||
break;
|
||||
|
||||
@@ -703,8 +703,7 @@ static void video_timer(VideoClientContext* video, UINT64 now)
|
||||
priv->droppedFrames++;
|
||||
VideoFrame_free(&frame);
|
||||
}
|
||||
frame = peekFrame;
|
||||
Queue_Dequeue(priv->frames);
|
||||
frame = Queue_Dequeue(priv->frames);
|
||||
} while (1);
|
||||
LeaveCriticalSection(&priv->framesLock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user