[Android] LibVLC: don't call native methods synchronized

Thomas Guillem git at videolan.org
Fri Jul 10 19:20:35 CEST 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jul 10 17:46:10 2015 +0200| [eabbf82b5179350b241be734ccf320b4d991d7f3] | committer: Thomas Guillem

LibVLC: don't call native methods synchronized

Fix deadlock when a thread is calling a native method that trigger a vlc event
from an other thread.

Change for Media class: attributes are not cached anymore after a parse,
therefore you must fetch them before calling release.

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=eabbf82b5179350b241be734ccf320b4d991d7f3
---

 libvlc/jni/libvlcjni-media.c                       |   32 ----
 libvlc/src/org/videolan/libvlc/Media.java          |  198 +++++++++++++-------
 .../src/org/videolan/libvlc/MediaDiscoverer.java   |   22 ++-
 libvlc/src/org/videolan/libvlc/MediaPlayer.java    |  128 +++++++------
 vlc-android/src/org/videolan/vlc/MediaLibrary.java |    3 +-
 .../src/org/videolan/vlc/PlaybackService.java      |    2 +-
 .../videolan/vlc/gui/video/MediaInfoFragment.java  |    4 +-
 .../videolan/vlc/gui/video/VideoGridFragment.java  |    2 +-
 8 files changed, 225 insertions(+), 166 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commitdiff;h=eabbf82b5179350b241be734ccf320b4d991d7f3


More information about the Android mailing list