[Android] [PATCH] disable MediaCodec with ".ts" files for all android versions

Jean-Baptiste Kempf jb at videolan.org
Tue Jan 20 00:46:50 CET 2015


On 19 Jan, Thomas Guillem wrote :
> ---
>  vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
> index dd56f57..5d6410b 100644
> --- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
> +++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
> @@ -2339,9 +2339,9 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
>          if(mLibVLC == null)
>              return;
>  
> -        /* WARNING: hack to avoid a crash in mediacodec on KitKat.
> +        /* WARNING: hack to avoid a crash in mediacodec.
>           * Disable hardware acceleration if the media has a ts extension. */
> -        if (mLocation != null && LibVlcUtil.isKitKatOrLater()) {
> +        if (mLocation != null) {

That is sad.

With my kindest regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device


More information about the Android mailing list