Skip to content
Snippets Groups Projects
Commit 1dbdcb3f authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Thread mediaplayer native stop()

Workaround to prevent ANR, because some VLC modules hang on stop
parent 6ac1f736
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment