Commit 1dbdcb3f authored by Geoffrey Métais's avatar Geoffrey Métais

Thread mediaplayer native stop()

Workaround to prevent ANR, because some VLC modules hang on stop
parent 6ac1f736
......@@ -621,7 +621,12 @@ public class MediaPlayer extends VLCObject<MediaPlayer.Event> {
mPlaying = false;
mAudioReset = true;
}
nativeStop();
new Thread(new Runnable() {
@Override
public void run() {
nativeStop();
}
}).start();
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment