[vlc-commits] nativewindowpriv: fix call order
Thomas Guillem
git at videolan.org
Fri Nov 21 11:13:06 CET 2014
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Nov 21 10:48:46 2014 +0100| [81179615b9e9da550de7b00d3e079f099d73c9aa] | committer: Jean-Baptiste Kempf
nativewindowpriv: fix call order
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=81179615b9e9da550de7b00d3e079f099d73c9aa
---
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 );
More information about the vlc-commits
mailing list