[Android] [PATCH] disable MediaCodec with ".ts" files for all android versions
Thomas Guillem
thomas at gllm.fr
Mon Jan 19 15:31:13 CET 2015
---
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) {
String locationLC = mLocation.toLowerCase(Locale.ENGLISH);
if (locationLC.endsWith(".ts")
|| locationLC.endsWith(".tts")
--
2.1.3
More information about the Android
mailing list