Commit 9e59f982 authored by Geoffrey Métais's avatar Geoffrey Métais

Handle negative sizes

(cherry picked from commit 06973007)
parent 1f71242f
......@@ -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;
......
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