mirror of https://github.com/Genymobile/scrcpy
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:
parent
c29ecd0314
commit
04a3e6fb06
|
@ -72,6 +72,7 @@ public class SurfaceEncoder implements AsyncProcessor {
|
|||
boolean headerWritten = false;
|
||||
|
||||
do {
|
||||
capture.consumeReset(); // If a capture reset was requested, it is implicitly fulfilled
|
||||
capture.prepare();
|
||||
Size size = capture.getSize();
|
||||
if (!headerWritten) {
|
||||
|
|
Loading…
Reference in New Issue