[Android] video: surface size of 1x1 to force vout to send video size & ar on first frame

Sébastien Toque git at videolan.org
Sat May 18 19:44:07 CEST 2013


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Sat May 18 19:38:47 2013 +0200| [114fd9e3e5180cd8d19c94b545bdf144faffa90b] | committer: Sébastien Toque

video: surface size of 1x1 to force vout to send video size & ar on first frame

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=114fd9e3e5180cd8d19c94b545bdf144faffa90b
---

 vlc-android/res/layout/player.xml |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/res/layout/player.xml b/vlc-android/res/layout/player.xml
index 8b1146b..be02802 100644
--- a/vlc-android/res/layout/player.xml
+++ b/vlc-android/res/layout/player.xml
@@ -19,8 +19,8 @@
 
             <SurfaceView
                 android:id="@+id/player_surface"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
+                android:layout_width="1dp"
+                android:layout_height="1dp"
                 android:layout_gravity="center_vertical" />
         </FrameLayout>
     </FrameLayout>



More information about the Android mailing list