Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Casanowow Life for love
VLC-Android
Commits
1dbdcb3f
Commit
1dbdcb3f
authored
Jul 27, 2017
by
Geoffrey Métais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Thread mediaplayer native stop()
Workaround to prevent ANR, because some VLC modules hang on stop
parent
6ac1f736
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
libvlc/src/org/videolan/libvlc/MediaPlayer.java
libvlc/src/org/videolan/libvlc/MediaPlayer.java
+6
-1
No files found.
libvlc/src/org/videolan/libvlc/MediaPlayer.java
View file @
1dbdcb3f
...
...
@@ -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
();
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment