mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-06 07:56:07 +00:00
Remove the decoder stop hack and try to workaround the issue differently
This commit is contained in:
@@ -416,10 +416,18 @@ public class MediaCodecDecoderRenderer extends VideoDecoderRenderer {
|
||||
|
||||
// Halt the rendering thread
|
||||
rendererThread.interrupt();
|
||||
|
||||
// Invalidate pending decode buffers
|
||||
videoDecoder.flush();
|
||||
|
||||
// Wait for the renderer thread to shut down
|
||||
try {
|
||||
rendererThread.join();
|
||||
} catch (InterruptedException ignored) { }
|
||||
|
||||
// Stop the video decoder
|
||||
videoDecoder.stop();
|
||||
|
||||
// Halt the spinner threads
|
||||
for (Thread t : spinnerThreads) {
|
||||
t.interrupt();
|
||||
|
||||
Reference in New Issue
Block a user