[Android] [PATCH] disable MediaCodec with ".ts" files for all android versions
Martin Storsjö
martin at martin.st
Tue Jan 20 07:30:13 CET 2015
On Tue, 20 Jan 2015, Jean-Baptiste Kempf wrote:
> 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.
Is this hack in order to avoid the issues with interlaced videos, or what
was the actual issue here?
(It would be really nice to have a mention of that in the source next to
the hack, to have an even remote chance of getting rid of it later, at
least for later android versions.)
// Martin
More information about the Android
mailing list