screencopy: nullcheck for empty buffer

This commit is contained in:
vaxerski 2023-07-18 15:52:53 +02:00
parent 0ba28a46fd
commit 16fd9084ea

View file

@ -342,7 +342,7 @@ void CScreencopyProtocolManager::shareAllFrames(CMonitor* pMonitor, bool dmabuf)
// share frame if correct output
for (auto& f : m_vFramesAwaitingWrite) {
if (!f->pMonitor) {
if (!f->pMonitor || !f->buffer) {
framesToRemove.push_back(f);
continue;
}