Restore retry on spurious error
MediaCodec may fail spuriously, typically when stopping an encoding and starting a new one immediately (for example on device rotation). This was initially fixed by [1], but the fix was removed by [2], along with the removal of the mechanism to retry capture at a lower resolution on error. [1]: commit 07806ba9159b1f4dbd2ede77b110e254af1fd7f6 [2]: commit 4f97e2e30b9b02ff43d64e940165acafd7512a23 Refs #3693 <https://github.com/Genymobile/scrcpy/issues/3693> Refs #6766 <https://github.com/Genymobile/scrcpy/pull/6766> PR #6822 <https://github.com/Genymobile/scrcpy/pull/6822>
R
Romain Vimont committed
7ad637d99138b02b58aa757ffc338ab486370abe
Parent: 3fcb010