[Android] Handle negative sizes

Geoffrey Métais git at videolan.org
Thu Jun 23 16:46:39 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jun 23 16:46:31 2016 +0200| [069730073566c411445cf40629aedf04598a8d70] | committer: Geoffrey Métais

Handle negative sizes

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

 vlc-android/src/org/videolan/vlc/gui/video/MediaInfoFragment.java | 2 +-
 1 file changed, 1 insertion(+), 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 ead29f0..3ee93db 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/MediaInfoFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/MediaInfoFragment.java
@@ -232,7 +232,7 @@ public class MediaInfoFragment extends ListFragment {
                 return;
             int videoHeight = mItem.getHeight();
             int videoWidth = mItem.getWidth();
-            if (videoWidth == 0 || videoHeight == 0) {
+            if (videoWidth <= 0 || videoHeight <= 0) {
                 //FIXME : find a better way to display media info without video size
                 videoWidth = 16;
                 videoHeight = 9;



More information about the Android mailing list