Fix Nikon Z series lens identification
This commit is contained in:
@@ -320,7 +320,9 @@ FramesData::FramesData(const Glib::ustring &fname, time_t ts) :
|
|||||||
//orientation = pos->print(&exif);
|
//orientation = pos->print(&exif);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (find_exif_tag("Exif.NikonLd4.LensIDNumber") || find_exif_tag("Exif.Sony2.LensID")) {
|
if ((find_exif_tag("Exif.NikonLd4.LensID") && pos->toLong()) ||
|
||||||
|
(find_exif_tag("Exif.NikonLd4.LensIDNumber") && pos->toLong()) ||
|
||||||
|
(find_exif_tag("Exif.Sony2.LensID") && pos->toLong())) {
|
||||||
lens = validateUft8(pos->print(&exif));
|
lens = validateUft8(pos->print(&exif));
|
||||||
} else if (find_tag(Exiv2::lensName)) {
|
} else if (find_tag(Exiv2::lensName)) {
|
||||||
lens = validateUft8(pos->print(&exif));
|
lens = validateUft8(pos->print(&exif));
|
||||||
|
Reference in New Issue
Block a user