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:
parent
20e858b2fe
commit
f35afcd7ae
1 changed files with 1 additions and 0 deletions
|
@ -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)));
|
||||
|
|
Loading…
Reference in a new issue