Commit 4852474a authored by Xaver Hugl's avatar Xaver Hugl
Browse files

screencast: better solution for missing context on cursor move

There's no need to use tryEnqueue if we only update the cursor

(cherry picked from commit 1d1b218d)
parent 0d0a4574
Pipeline #151165 passed with stage
in 14 minutes and 11 seconds
......@@ -482,18 +482,16 @@ void ScreenCastStream::recordCursor()
struct pw_buffer *buffer = pw_stream_dequeue_buffer(pwStream);
if (!buffer) {
m_pendingBuffer = pw_stream_dequeue_buffer(pwStream);
if (!m_pendingBuffer) {
struct spa_buffer *spa_buffer = buffer->buffer;
struct spa_buffer *spa_buffer = m_pendingBuffer->buffer;
spa_buffer->datas[0].chunk->size = 0;
(spa_meta_cursor *) spa_buffer_find_meta_data (spa_buffer, SPA_META_Cursor, sizeof (spa_meta_cursor)));
void ScreenCastStream::tryEnqueue(pw_buffer *buffer)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment