[Android] Trim audio metadata
Geoffrey Métais
git at videolan.org
Fri Dec 5 14:39:39 CET 2014
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Dec 3 19:39:30 2014 +0100| [2ce12d854f31e6a7115a4edc3a4be34186dce268] | committer: Geoffrey Métais
Trim audio metadata
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=2ce12d854f31e6a7115a4edc3a4be34186dce268
---
libvlc/src/org/videolan/libvlc/Media.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libvlc/src/org/videolan/libvlc/Media.java b/libvlc/src/org/videolan/libvlc/Media.java
index eb556a9..c3e09d4 100644
--- a/libvlc/src/org/videolan/libvlc/Media.java
+++ b/libvlc/src/org/videolan/libvlc/Media.java
@@ -177,10 +177,10 @@ public class Media implements Comparable<Media> {
mType = TYPE_AUDIO;
} else if (track.Type == TrackInfo.TYPE_META) {
mLength = track.Length;
- mTitle = track.Title;
- mArtist = getValueWrapper(track.Artist, UnknownStringType.Artist);
- mAlbum = getValueWrapper(track.Album, UnknownStringType.Album);
- mGenre = getValueWrapper(track.Genre, UnknownStringType.Genre);
+ mTitle = track.Title.trim();
+ mArtist = getValueWrapper(track.Artist, UnknownStringType.Artist).trim();
+ mAlbum = getValueWrapper(track.Album, UnknownStringType.Album).trim();
+ mGenre = getValueWrapper(track.Genre, UnknownStringType.Genre).trim();
mArtworkURL = track.ArtworkURL;
mNowPlaying = track.NowPlaying;
Log.d(TAG, "Title " + mTitle);
More information about the Android
mailing list