[Android] Show media info even if video resolution is unknown

Sébastien Toque git at videolan.org
Tue Sep 29 22:48:38 CEST 2015


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Tue Sep 29 22:48:32 2015 +0200| [4870fa17fae5a537cf9fff118c2d5de117512366] | committer: Sébastien Toque

Show media info even if video resolution is unknown

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

 vlc-android/src/org/videolan/vlc/gui/video/MediaInfoFragment.java |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/MediaInfoFragment.java b/vlc-android/src/org/videolan/vlc/gui/video/MediaInfoFragment.java
index 6d9fff5..5f34a06 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/MediaInfoFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/MediaInfoFragment.java
@@ -228,7 +228,9 @@ public class MediaInfoFragment extends ListFragment {
             int videoHeight = mItem.getHeight();
             int videoWidth = mItem.getWidth();
             if (videoWidth == 0 || videoHeight == 0) {
-                return;
+                //FIXME : find a better way to display media info without video size
+                videoWidth = 16;
+                videoHeight = 9;
             }
 
             mHandler.sendEmptyMessage(NEW_TEXT);



More information about the Android mailing list