Commit cfd65c71 authored by Thomas Guillem's avatar Thomas Guillem

Update HASH and remove .ts HACK

MediaCodec can now play livestreaming and ts files.
parent 055bbe27
......@@ -131,7 +131,7 @@ fi
# Fetch VLC source #
####################
TESTED_HASH=a58d7c7
TESTED_HASH=8f433b2
if [ ! -d "vlc" ]; then
echo "VLC source not found, cloning"
git clone git://git.videolan.org/vlc.git vlc
......
......@@ -2729,21 +2729,6 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVideoPlay
openedPosition = getIntent().getExtras().getInt(PLAY_EXTRA_OPENED_POSITION, -1);
}
/* WARNING: hack to avoid a crash in mediacodec on KitKat.
* Disable hardware acceleration if the media has a ts extension. */
if (mLocation != null && LibVlcUtil.isKitKatOrLater()) {
String locationLC = mLocation.toLowerCase(Locale.ENGLISH);
if (locationLC.endsWith(".ts")
|| locationLC.endsWith(".tts")
|| locationLC.endsWith(".m2t")
|| locationLC.endsWith(".mts")
|| locationLC.endsWith(".m2ts")) {
mDisabledHardwareAcceleration = true;
mPreviousHardwareAccelerationMode = mLibVLC.getHardwareAcceleration();
mLibVLC.setHardwareAcceleration(LibVLC.HW_ACCELERATION_DISABLED);
}
}
if (openedPosition != -1) {
// Provided externally from AudioService
Log.d(TAG, "Continuing playback from AudioService at index " + openedPosition);
......
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