[Android] MediaWrapper: use mTitle for Video too

Thomas Guillem git at videolan.org
Thu Mar 12 16:41:20 CET 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Mar 12 16:40:49 2015 +0100| [b329cc7a0a1629040e8e05345fba5f831a6a1979] | committer: Thomas Guillem

MediaWrapper: use mTitle for Video too

It fixes wrong video name using upnp.

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=b329cc7a0a1629040e8e05345fba5f831a6a1979
---

 vlc-android/src/org/videolan/vlc/MediaWrapper.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/MediaWrapper.java b/vlc-android/src/org/videolan/vlc/MediaWrapper.java
index fc91ac8..95de3a8 100644
--- a/vlc-android/src/org/videolan/vlc/MediaWrapper.java
+++ b/vlc-android/src/org/videolan/vlc/MediaWrapper.java
@@ -308,7 +308,7 @@ public class MediaWrapper implements Parcelable {
     }
 
     public String getTitle() {
-        if (mTitle != null && mType != TYPE_VIDEO)
+        if (!TextUtils.isEmpty(mTitle))
             return mTitle;
         else {
             String fileName = getFileName();



More information about the Android mailing list