Skip to content
Commit 8d0e1b29 authored by Arjen Hiemstra's avatar Arjen Hiemstra Committed by Vlad Zahorodnii
Browse files

screencast: Discard pending buffer and fence if stream state changes

While the changes made earlier prevent enqueueing buffers when the
stream is not in a streaming state, screencasting continued to crash.
The reason for that seems to be that pipewire will, in certain cases,
invalidate some buffers, including the buffer that we are currently
tracking as "pending buffer". The result of this is that when we then
try to enqueue that buffer, we get a crash.

To prevent this, discard the pending buffer when the stream state
changes. Since that makes the pending fence useless as well, also
discard it and its notifier.
parent aedd67ef
Pipeline #409622 failed with stage
in 8 minutes and 55 seconds
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