Changeset 14671
- Timestamp:
- 06/09/08 10:44:18 (6 months ago)
- Files:
-
- branches/1.5/gdal/frmts/mrsid/mrsiddataset.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.5/gdal/frmts/mrsid/mrsiddataset.cpp
r14667 r14671 1262 1262 MrSIDDataset *poDS; 1263 1263 const LTFileSpec oFileSpec( poOpenInfo->pszFilename ); 1264 LT_STATUS eStat; 1264 1265 1265 1266 poDS = new MrSIDDataset(); … … 1269 1270 else 1270 1271 #endif 1272 { 1273 #if defined(LTI_SDK_MAJOR) && LTI_SDK_MAJOR >= 7 1274 poDS->poImageReader = MrSIDImageReader::create(); 1275 eStat = poDS->poImageReader->initialize( oFileSpec, true ); 1276 #else 1271 1277 poDS->poImageReader = new LTIDLLReader<MrSIDImageReader>( oFileSpec, false ); 1272 1273 if ( !LT_SUCCESS( poDS->poImageReader->initialize() ) ) 1278 eStat = poDS->poImageReader->initialize(); 1279 #endif 1280 } 1281 1282 1283 if ( !LT_SUCCESS(eStat) ) 1274 1284 { 1275 1285 delete poDS; … … 1285 1295 poDS->poMetadata = new LTIDLLCopy<LTIMetadataDatabase>( 1286 1296 poDS->poImageReader->getMetadata() ); 1287 #if defined(LTI_SDK_MAJOR) && LTI_SDK_MAJOR >= 71288 {1289 poDS->poImageReader = MrSIDImageReader::create();1290 }1291 1292 eStat = poDS->poImageReader->initialize( &poDS->oStream, NULL );1293 #else1294 1297 const GUInt32 iNumRecs = poDS->poMetadata->getIndexCount(); 1295 1298 GUInt32 i; … … 1298 1301 { 1299 1302 const LTIMetadataRecord *poMetadataRec = NULL; 1300 #endif1301 1302 1303 if ( LT_SUCCESS(poDS->poMetadata->getDataByIndex(i, poMetadataRec)) ) 1303 1304 {
