mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-17 05:24:19 +01:00
Consume reset request on encoding start
If a reset request is pending when a new encoding starts, then it is implicitly fulfilled. PR #5415 <https://github.com/Genymobile/scrcpy/pull/5415>
This commit is contained in:
@@ -72,6 +72,7 @@ public class SurfaceEncoder implements AsyncProcessor {
|
|||||||
boolean headerWritten = false;
|
boolean headerWritten = false;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
capture.consumeReset(); // If a capture reset was requested, it is implicitly fulfilled
|
||||||
capture.prepare();
|
capture.prepare();
|
||||||
Size size = capture.getSize();
|
Size size = capture.getSize();
|
||||||
if (!headerWritten) {
|
if (!headerWritten) {
|
||||||
|
|||||||
Reference in New Issue
Block a user