[Android] fix media type detection
Sébastien Toque
git at videolan.org
Wed Jul 4 21:36:46 CEST 2012
android | branch: master | Sébastien Toque <xilasz at gmail.com> | Wed Jul 4 21:36:38 2012 +0200| [bf4e638f4bc795db913f015a91009ec57818ce48] | committer: Sébastien Toque
fix media type detection
> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=bf4e638f4bc795db913f015a91009ec57818ce48
---
vlc-android/src/org/videolan/vlc/Media.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/Media.java b/vlc-android/src/org/videolan/vlc/Media.java
index b9dfe14..4432146 100644
--- a/vlc-android/src/org/videolan/vlc/Media.java
+++ b/vlc-android/src/org/videolan/vlc/Media.java
@@ -138,7 +138,7 @@ public class Media implements Comparable<Media> {
mType = TYPE_VIDEO;
mWidth = track.Width;
mHeight = track.Height;
- } else if (track.Type == TrackInfo.TYPE_AUDIO){
+ } else if (mType == TYPE_ALL && track.Type == TrackInfo.TYPE_AUDIO){
mType = TYPE_AUDIO;
} else if (track.Type == TrackInfo.TYPE_META) {
mLength = track.Length;
More information about the Android
mailing list