mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 03:52:48 +00:00
Avoid looping when the thread is trying to be interrupted
This commit is contained in:
parent
3143797b55
commit
f5444551b2
@ -810,11 +810,11 @@ public class MediaCodecDecoderRenderer extends EnhancedDecoderRenderer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void directSubmitDecodeUnit(DecodeUnit du) {
|
public void directSubmitDecodeUnit(DecodeUnit du) {
|
||||||
int inputIndex;
|
int inputIndex = -1;
|
||||||
|
|
||||||
notifyDuReceived(du);
|
notifyDuReceived(du);
|
||||||
|
|
||||||
for (;;) {
|
while (!Thread.currentThread().isInterrupted()) {
|
||||||
try {
|
try {
|
||||||
inputIndex = dequeueInputBuffer(true, true);
|
inputIndex = dequeueInputBuffer(true, true);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user