diff options
| author | Lena <lena@omega> | 2026-07-01 00:00:00 +0000 |
|---|---|---|
| committer | Lena <lena@omega> | 2026-07-01 00:00:00 +0000 |
| commit | 735ca8b58dc341f4521a162346ba14fe943eb2bb (patch) | |
| tree | 423fcddb7ee7e918e59496821aeae096e6bce377 /app/src/test/java/invalid/lena/scrcpy/DevicesTest.java | |
| parent | eb0c8951196c637e44daf3c0617b131b997d5d2c (diff) | |
| download | scrcpy-android-735ca8b58dc341f4521a162346ba14fe943eb2bb.tar.gz | |
app: guard VideoSink.submit against torn-down codec
reconfigure() tears the codec down outside the lock, so an in-flight
MediaCodec callback can reach submit() while `codec` is null. The NPE
lands on the callback handler thread, which has no catch and kills
the process. Drop the frame instead, like any back-pressure casualty.
Also rewrite the back-pressure comment: it described a keyframe-aware
drop policy this class cannot implement (the keyframe flag never
reaches it). The real policy protects config frames only.
Diffstat (limited to 'app/src/test/java/invalid/lena/scrcpy/DevicesTest.java')
0 files changed, 0 insertions, 0 deletions