[vlc-devel] [PATCH] nativewindowpriv: use GRALLOC_USAGE_SW_READ_OFTEN for sw

Thomas Guillem thomas at gllm.fr
Tue Dec 2 20:12:31 CET 2014


No, I mixed up with an other build, this commit solve nothing (expect if
you want to read the output buffer).

On Tue, Dec 2, 2014, at 16:12, Thomas Guillem wrote:
> Apparently, last version of android need to read the buffer.
> ---
>  modules/video_output/android/nativewindowpriv.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/modules/video_output/android/nativewindowpriv.c
> b/modules/video_output/android/nativewindowpriv.c
> index 7564216..2be71f3 100644
> --- a/modules/video_output/android/nativewindowpriv.c
> +++ b/modules/video_output/android/nativewindowpriv.c
> @@ -159,7 +159,7 @@ int ANativeWindowPriv_setup( native_window_priv
> *priv, int w, int h, int hal_for
>  #endif
>      }
>      else
> -        priv->usage = GRALLOC_USAGE_SW_READ_NEVER |
> GRALLOC_USAGE_SW_WRITE_OFTEN;
> +        priv->usage = GRALLOC_USAGE_SW_READ_OFTEN |
> GRALLOC_USAGE_SW_WRITE_OFTEN;
>  
>      err = native_window_set_usage( priv->anw, priv->usage );
>      CHECK_ERR();
> -- 
> 2.1.3
> 



More information about the vlc-devel mailing list