aboutsummaryrefslogtreecommitdiff
path: root/scripts/build-apk
diff options
context:
space:
mode:
authorLena <lena@omega>2026-07-01 00:00:00 +0000
committerLena <lena@omega>2026-07-01 00:00:00 +0000
commit735ca8b58dc341f4521a162346ba14fe943eb2bb (patch)
tree423fcddb7ee7e918e59496821aeae096e6bce377 /scripts/build-apk
parenteb0c8951196c637e44daf3c0617b131b997d5d2c (diff)
downloadscrcpy-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 'scripts/build-apk')
0 files changed, 0 insertions, 0 deletions