[Android] RendererDelegate: abandon connect if released
Geoffrey Métais
git at videolan.org
Mon Jul 23 14:48:18 CEST 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jul 23 09:40:06 2018 +0200| [01a503c0a900108553916d689a65b007b120475d] | committer: Geoffrey Métais
RendererDelegate: abandon connect if released
> https://code.videolan.org/videolan/vlc-android/commit/01a503c0a900108553916d689a65b007b120475d
---
vlc-android/src/org/videolan/vlc/RendererDelegate.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/RendererDelegate.kt b/vlc-android/src/org/videolan/vlc/RendererDelegate.kt
index 2118a0e74..90c0d52d4 100644
--- a/vlc-android/src/org/videolan/vlc/RendererDelegate.kt
+++ b/vlc-android/src/org/videolan/vlc/RendererDelegate.kt
@@ -52,7 +52,7 @@ object RendererDelegate : RendererDiscoverer.EventListener {
val rd = RendererDiscoverer(libVlc, discoverer.name)
discoverers.add(rd)
rd.setEventListener(this at RendererDelegate)
- retry(5, 1000L) { rd.start() }
+ retry(5, 1000L) { if (!rd.isReleased) rd.start() else false }
}
}
More information about the Android
mailing list