screencast: Still set the size to 0 for cursor-only frames

Otherwise OBS glitches (and so does KPipeWire-based software)
This commit is contained in:
Aleix Pol 2023-04-07 15:46:07 +02:00
parent 20e858b2fe
commit f35afcd7ae

View file

@ -633,6 +633,7 @@ void ScreenCastStream::recordCursor()
// in pipewire terms, corrupted means "do not look at the frame contents" and here they're empty.
spa_buffer->datas[0].chunk->flags = SPA_CHUNK_FLAG_CORRUPTED;
spa_buffer->datas[0].chunk->size = 0;
sendCursorData(Cursors::self()->currentCursor(),
(spa_meta_cursor *)spa_buffer_find_meta_data(spa_buffer, SPA_META_Cursor, sizeof(spa_meta_cursor)));