[Android] TV: Fix channel preview position

Geoffrey Métais git at videolan.org
Tue Oct 30 12:00:06 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Oct 30 11:57:51 2018 +0100| [e54bdc7a8a4f090e4e4d308ba4673bff1d91d4d4] | committer: Geoffrey Métais

TV: Fix channel preview position

Fix #648

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

 vlc-android/src/org/videolan/vlc/PreviewVideoInputService.kt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/PreviewVideoInputService.kt b/vlc-android/src/org/videolan/vlc/PreviewVideoInputService.kt
index 7597ac23f..079bd7520 100644
--- a/vlc-android/src/org/videolan/vlc/PreviewVideoInputService.kt
+++ b/vlc-android/src/org/videolan/vlc/PreviewVideoInputService.kt
@@ -32,7 +32,7 @@ class PreviewVideoInputService : TvInputService(), CoroutineScope {
         return PreviewSession(this)
     }
 
-    private inner class PreviewSession(private val context: Context
+    private inner class PreviewSession(context: Context
     ) : TvInputService.Session(context), MediaPlayerEventListener {
 
         val player by lazy(LazyThreadSafetyMode.NONE) { PlayerController(applicationContext) }
@@ -81,7 +81,7 @@ class PreviewVideoInputService : TvInputService(), CoroutineScope {
             return true
         }
 
-        override fun onOverlayViewSizeChanged(width: Int, height: Int) {
+        override fun onSurfaceChanged(format: Int, width: Int, height: Int) {
             this.width = width
             this.height = height
         }



More information about the Android mailing list