Commit 67078588 authored by Geoffrey Métais's avatar Geoffrey Métais

Thread mediaplayer restarting

This extends the workaround for hanging Mediaplayer.stop()
parent f9f95c52
......@@ -2509,8 +2509,14 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
public void restartMediaPlayer() {
stop();
mMediaPlayer.release();
mMediaPlayer = newMediaPlayer();
// Thread restart while MediaPlayer.stop() is threaded.
VLCApplication.runBackground(new Runnable() {
@Override
public void run() {
mMediaPlayer.release();
mMediaPlayer = newMediaPlayer();
}
});
/* TODO RESUME */
}
......
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