[vlc-devel] [PATCH 2/8] nativewindowpriv: fix call order
Thomas Guillem
thomas at gllm.fr
Thu Nov 20 13:16:38 CET 2014
---
modules/video_output/android/nativewindowpriv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/android/nativewindowpriv.c b/modules/video_output/android/nativewindowpriv.c
index bcf5c03..3632a89 100644
--- a/modules/video_output/android/nativewindowpriv.c
+++ b/modules/video_output/android/nativewindowpriv.c
@@ -155,13 +155,13 @@ int ANativeWindowPriv_setup( native_window_priv *priv, int w, int h, int hal_for
CHECK_ERR();
#if ANDROID_ICS_OR_LATER
- err = native_window_set_scaling_mode( priv->anw, NATIVE_WINDOW_SCALING_MODE_SCALE_TO_WINDOW );
+ err = native_window_set_buffers_format( priv->anw, hal_format );
CHECK_ERR();
err = native_window_set_buffers_dimensions( priv->anw, w, h );
CHECK_ERR();
- err = native_window_set_buffers_format( priv->anw, hal_format );
+ err = native_window_set_scaling_mode( priv->anw, NATIVE_WINDOW_SCALING_MODE_SCALE_TO_WINDOW );
CHECK_ERR();
#else
err = native_window_set_buffers_geometry( priv->anw, w, h, hal_format );
--
2.1.1
More information about the vlc-devel
mailing list