Merge pull request #12061 from eduar-hte/rdpecam-send-sample-when-available

rdpecam: send sample only if it's available
This commit is contained in:
akallabeth
2025-12-10 16:22:02 +01:00
committed by GitHub

View File

@@ -451,7 +451,7 @@ static UINT ecam_dev_process_sample_request(CameraDevice* dev, GENERIC_CHANNEL_C
UINT ret = CHANNEL_RC_OK;
stream->samplesRequested++;
if (stream->pendingSample)
if (stream->haveSample)
ret = ecam_dev_send_pending(dev, streamIndex, stream);
LeaveCriticalSection(&stream->lock);