[Android] LibVLC: disable automatic DTS_HD

Thomas Guillem git at videolan.org
Mon Mar 13 14:52:58 CET 2017


vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Mar 13 14:52:12 2017 +0100| [e199c90adcc11dd349b71664b85d68bab7600956] | committer: Thomas Guillem

LibVLC: disable automatic DTS_HD

See comment, DTS_HD should be enabled via a Settings.

> https://code.videolan.org/videolan/vlc-android/commit/e199c90adcc11dd349b71664b85d68bab7600956
---

 libvlc/src/org/videolan/libvlc/MediaPlayer.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libvlc/src/org/videolan/libvlc/MediaPlayer.java b/libvlc/src/org/videolan/libvlc/MediaPlayer.java
index ce7aa7e..54b16cb 100644
--- a/libvlc/src/org/videolan/libvlc/MediaPlayer.java
+++ b/libvlc/src/org/videolan/libvlc/MediaPlayer.java
@@ -403,7 +403,10 @@ public class MediaPlayer extends VLCObject<MediaPlayer.Event> {
             case AudioFormat.ENCODING_E_AC3:
             case 14 /* AudioFormat.ENCODING_DOLBY_TRUEHD */:
             case AudioFormat.ENCODING_DTS:
-            case AudioFormat.ENCODING_DTS_HD:
+            /* Disable automatic DTS_HD support. Androids report that DTS_HD is supported on every
+             * devices that support DTS even if they don't support DTS_HD.
+             * case AudioFormat.ENCODING_DTS_HD:
+             */
                 return true;
             default:
                 return false;



More information about the Android mailing list