Commit db9a3864 authored by Thomas Guillem's avatar Thomas Guillem

android_window: don't try to configure if opaque

parent 159a6f1e
...@@ -521,23 +521,20 @@ static int AndroidWindow_Setup(vout_display_sys_t *sys, ...@@ -521,23 +521,20 @@ static int AndroidWindow_Setup(vout_display_sys_t *sys,
p_window->fmt.i_height = p_pic->format.i_height; p_window->fmt.i_height = p_pic->format.i_height;
p_window->fmt.i_width = (p_pic->format.i_width + align_pixels) & ~align_pixels; p_window->fmt.i_width = (p_pic->format.i_width + align_pixels) & ~align_pixels;
picture_Release(p_pic); picture_Release(p_pic);
}
if (AndroidWindow_ConfigureJavaSurface(sys, p_window, if (AndroidWindow_ConfigureJavaSurface(sys, p_window,
&b_java_configured) != 0) &b_java_configured) != 0)
return -1; return -1;
if (!p_window->jsurface) {
sys->p_window->i_pic_count = 31; // TODO
sys->p_window->i_min_undequeued = 0;
return 0;
}
if (!p_window->b_use_priv if (!p_window->b_use_priv
|| AndroidWindow_SetupANWP(sys, p_window, b_java_configured) != 0) { || AndroidWindow_SetupANWP(sys, p_window, b_java_configured) != 0) {
if (AndroidWindow_SetupANW(sys, p_window, b_java_configured) != 0) if (AndroidWindow_SetupANW(sys, p_window, b_java_configured) != 0)
return -1; return -1;
} }
} else {
sys->p_window->i_pic_count = 31; // TODO
sys->p_window->i_min_undequeued = 0;
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment