-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use pipewire buffers #141
Merged
columbarius
merged 19 commits into
emersion:master
from
columbarius:screencast-pw-driven
Nov 6, 2021
Merged
use pipewire buffers #141
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
2323296
screencast: pipewire add functions to dequeue and enqueue a buffer
columbarius 5216916
screencast: use dequeue/enqueue functions instead of on_process event…
columbarius 68d938f
screencast: remove pipewire on_event callback
columbarius 5b8b189
screencast: pipewire add import_wl_shm_buffer function
columbarius e726cda
screencast: rename xdpw_frame into xdpw_screencopy_frame
columbarius 444aac9
screencast: only restart wlroots loop if stream is active
columbarius d7cc408
screencast: implement buffer property checks wrt. xdpw_frame and xdpw…
columbarius c822461
screencast: use pipewire buffers directly for wlroots screencopy
columbarius 5e69384
screencast: cleanup screencopy_frame
columbarius ff9965d
screencast: only end the fps measurement when it was started before
columbarius 804920e
screencast: reorder screencopy callbacks
columbarius c4e98b8
screencast: introduce xdpw_frame_state and xdpw_wlr_stream_finish
columbarius a56312a
screencast: drop imported PipeWire buffer on remove_buffer
columbarius 32b55d3
screencast: don't fail when copy_buffer was unsuccessfull
columbarius 91c53a9
screencast: mark buffer as invalid when screencopy fails
columbarius ca00e96
screencast: use asserts for fatal errors
columbarius f5d62fc
meson: bump required pipewire version to 0.3.34
columbarius ac2c3fe
screencast: use the pipewire callback process to start screencast
columbarius b224a75
screencast: bump the prefered amount of pipewire buffers to 4
columbarius File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked every commit again and found a race condition only in
screencast: only restart wlroots loop if stream is active
when PipeWire sends a
state_changed
changing the state toPW_STATE_STREAMING
in between thebuffer_done
and theready
/failed
events of the screencopy loop. This did trigger a new screencopy loop entrance while the old wasn't finished and triggered an assertion inxdpw_pwr_dequeue_buffer
.Checking if NO screencopy loop is currently running via
cast->wlr_frame == NULL
solved this issue.