[vlc-commits] vout: android: window can't change the video layout
Thomas Guillem
git at videolan.org
Mon Nov 28 16:37:45 CET 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Nov 22 16:00:07 2016 +0100| [59e0fea8d8eaf9b9f3342f70cf9f4f67031df231] | committer: Thomas Guillem
vout: android: window can't change the video layout
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=59e0fea8d8eaf9b9f3342f70cf9f4f67031df231
---
modules/video_output/android/window.c | 25 +++----------------------
1 file changed, 3 insertions(+), 22 deletions(-)
diff --git a/modules/video_output/android/window.c b/modules/video_output/android/window.c
index 9503f28..74d1bfc 100644
--- a/modules/video_output/android/window.c
+++ b/modules/video_output/android/window.c
@@ -83,10 +83,6 @@ static int Open(vout_window_t *wnd, const vout_window_cfg_t *cfg)
wnd->control = Control;
wnd->sys = p_sys;
- // Set the Java surface size.
- AWindowHandler_setWindowLayout(p_sys->p_awh, cfg->width, cfg->height,
- cfg->width, cfg->height, 1, 1);
-
return VLC_SUCCESS;
error:
@@ -113,22 +109,7 @@ static void Close(vout_window_t *wnd)
*/
static int Control(vout_window_t *wnd, int cmd, va_list ap)
{
- switch (cmd)
- {
- case VOUT_WINDOW_SET_SIZE:
- {
- unsigned width = va_arg(ap, unsigned);
- unsigned height = va_arg(ap, unsigned);
- AWindowHandler_setWindowLayout(wnd->sys->p_awh, width, height,
- width, height, 1, 1);
- break;
- }
- case VOUT_WINDOW_SET_STATE:
- case VOUT_WINDOW_SET_FULLSCREEN:
- return VLC_EGENERIC;
- default:
- msg_Err (wnd, "request %d not implemented", cmd);
- return VLC_EGENERIC;
- }
- return VLC_SUCCESS;
+ (void) ap;
+ msg_Err (wnd, "request %d not implemented", cmd);
+ return VLC_EGENERIC;
}
More information about the vlc-commits
mailing list