[Android] Release RendererDiscoverer when we stop it
Geoffrey Métais
git at videolan.org
Thu Jul 19 13:18:08 CEST 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jul 19 10:58:32 2018 +0200| [ae523c0f77a71267bbb1ce47abc617a63cd99b03] | committer: Geoffrey Métais
Release RendererDiscoverer when we stop it
> https://code.videolan.org/videolan/vlc-android/commit/ae523c0f77a71267bbb1ce47abc617a63cd99b03
---
libvlc/src/org/videolan/libvlc/RendererDiscoverer.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/libvlc/src/org/videolan/libvlc/RendererDiscoverer.java b/libvlc/src/org/videolan/libvlc/RendererDiscoverer.java
index d972bb6cc..2baf28ee8 100644
--- a/libvlc/src/org/videolan/libvlc/RendererDiscoverer.java
+++ b/libvlc/src/org/videolan/libvlc/RendererDiscoverer.java
@@ -78,6 +78,7 @@ public class RendererDiscoverer extends VLCObject<RendererDiscoverer.Event> {
if (isReleased()) throw new IllegalStateException("MediaDiscoverer is released");
setEventListener(null);
nativeStop();
+ release();
}
public void setEventListener(EventListener listener) {
More information about the Android
mailing list