Commit 06973007 authored by Geoffrey Métais's avatar Geoffrey Métais

Handle negative sizes

parent 6303ffdb
...@@ -232,7 +232,7 @@ public class MediaInfoFragment extends ListFragment { ...@@ -232,7 +232,7 @@ public class MediaInfoFragment extends ListFragment {
return; return;
int videoHeight = mItem.getHeight(); int videoHeight = mItem.getHeight();
int videoWidth = mItem.getWidth(); 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 //FIXME : find a better way to display media info without video size
videoWidth = 16; videoWidth = 16;
videoHeight = 9; videoHeight = 9;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment