[vlc-devel] [PATCH 3/8] nativewindowpriv: use set_buffers_user_dimensions after jbmr2
Thomas Guillem
thomas at gllm.fr
Thu Nov 20 13:16:39 CET 2014
---
modules/video_output/android/nativewindowpriv.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/video_output/android/nativewindowpriv.c b/modules/video_output/android/nativewindowpriv.c
index 3632a89..48c3e75 100644
--- a/modules/video_output/android/nativewindowpriv.c
+++ b/modules/video_output/android/nativewindowpriv.c
@@ -158,7 +158,11 @@ int ANativeWindowPriv_setup( native_window_priv *priv, int w, int h, int hal_for
err = native_window_set_buffers_format( priv->anw, hal_format );
CHECK_ERR();
+#if ANDROID_JBMR2_OR_LATER
+ err = native_window_set_buffers_user_dimensions( priv->anw, w, h );
+#else
err = native_window_set_buffers_dimensions( priv->anw, w, h );
+#endif
CHECK_ERR();
err = native_window_set_scaling_mode( priv->anw, NATIVE_WINDOW_SCALING_MODE_SCALE_TO_WINDOW );
--
2.1.1
More information about the vlc-devel
mailing list