This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed bug that prevented showing Galaxy Nexus pictures

  • Loading branch information...
Raptor399 committed Nov 1, 2012
1 parent 74685d6 commit a6d773da258a3aa2402ad85b32daffad197612ab
Showing with 4 additions and 1 deletion.
  1. +1 −0 CHANGELOG.txt
  2. +3 −1 src/main/java/net/pms/dlna/DLNAMediaInfo.java
View
@@ -22,6 +22,7 @@ Changelog:
- Improve handling of initialization errors
- Fixed possible error while loading iPhoto library (GC1523)
- Fixed bug where disabled engines could be selected in the #--TRANSCODE--# folder
+ - Fixed bug that prevented showing Galaxy Nexus pictures
1.70.1 - 2012-08-31
@@ -556,7 +556,9 @@ public void parse(InputFile f, Format ext, int type, boolean thumbOnly) {
tf = jpegmeta.findEXIFValue(TiffConstants.EXIF_TAG_ISO);
if (tf != null) {
- setIso(tf.getIntValue());
+ // Galaxy Nexus jpg pictures may contain multiple values, take the first
+ int[] isoValues = tf.getIntArrayValue();
+ setIso(isoValues[0]);
}
}
} else if (formatName.startsWith("PNG")) {

0 comments on commit a6d773d

Please sign in to comment.