[Android] RendererDelegate: abandon connect if released
Geoffrey Métais
git at videolan.org
Tue Jul 24 10:50:44 CEST 2018
vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jul 23 09:40:06 2018 +0200| [b4b20f4a325b71da5ad1350c42b538551d6f21ae] | committer: Geoffrey Métais
RendererDelegate: abandon connect if released
(cherry picked from commit 01a503c0a900108553916d689a65b007b120475d)
> https://code.videolan.org/videolan/vlc-android/commit/b4b20f4a325b71da5ad1350c42b538551d6f21ae
---
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 0eeb789cd..d8d87adf6 100644
--- a/vlc-android/src/org/videolan/vlc/RendererDelegate.kt
+++ b/vlc-android/src/org/videolan/vlc/RendererDelegate.kt
@@ -63,7 +63,7 @@ object RendererDelegate : RendererDiscoverer.EventListener, ExternalMonitor.Netw
val rd = RendererDiscoverer(libVlc, discoverer.name)
mDiscoverers.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