Skip to content

Commit 57db913

Browse files
committed
FIXUP reorg
1 parent 46c87de commit 57db913

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

exif-gps.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,19 +120,20 @@ char* ReadExifData(const char* File, int* IncludesGPS, double* Lat, double* Long
120120
DEBUGLOG("Failed to open file %s.\n", File);
121121
return NULL;
122122
}
123-
try {
124-
Image->readMetadata();
125-
} catch (Exiv2::Error& e) {
126-
DEBUGLOG("Failed to read EXIF metadata in %s.\n", File);
127-
return NULL;
128-
}
129123
if (Image.get() == NULL)
130124
{
131125
DEBUGLOG("Failed to read file %s %s.\n",
132126
File, Exiv2::strError().c_str());
133127
return NULL;
134128
}
135129

130+
try {
131+
Image->readMetadata();
132+
} catch (Exiv2::Error& e) {
133+
DEBUGLOG("Failed to read EXIF metadata in %s.\n", File);
134+
return NULL;
135+
}
136+
136137
Exiv2::ExifData &ExifRead = Image->exifData();
137138

138139
// Read the tag out.

0 commit comments

Comments
 (0)