mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +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);
|
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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user