Retry on failed frame captures, and update ext_image_copy_capture_session_v1 buffer parameters on every ::done #102
+62
−40
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.
I recently tried to use
wl-screenrec --experiemental-ext-image-copy-capture
with wlroots' draft implementation of ext-image-copy-capture, but that produced an error described at #101, when I resized the output while a full-output recording was running. (By running Sway inside itself, and resizing the nested Sway window.) This is admittedly a weird thing to do, but it is an easy way to test that programs can reliably handle runtime output changes (like changing output scale or mode), that sometimes reveals race conditions.After doing a quick fix for #101 (see last commit of https://github.com/mstoeckl/wl-screenrec/tree/fix-duplicate-frame-hack, which is probably not the best way to solve the problem), I made other patches to address minor issues that I noticed, which I am submitting in this PR.