[Android] Handle negative sizes
Geoffrey Métais
git at videolan.org
Thu Jun 23 16:59:03 CEST 2016
vlc-android | branch: 2.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jun 23 16:46:31 2016 +0200| [9e59f98295be8b71cd56d1c3da7f56b4fcb7b839] | committer: Geoffrey Métais
Handle negative sizes
(cherry picked from commit 069730073566c411445cf40629aedf04598a8d70)
> https://code.videolan.org/videolan/vlc-android/commit/9e59f98295be8b71cd56d1c3da7f56b4fcb7b839
---
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