[Android] Release RendererDiscoverer on stop

Geoffrey Métais git at videolan.org
Wed Jul 18 12:57:12 CEST 2018


vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jul 18 12:56:48 2018 +0200| [74e68c888615c7331ea7fb4d68ebe18f0dcc1407] | committer: Geoffrey Métais

Release RendererDiscoverer on stop

> https://code.videolan.org/videolan/vlc-android/commit/74e68c888615c7331ea7fb4d68ebe18f0dcc1407
---

 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 1ef952a3f..48d917ef6 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