comparison index.cpp @ 454:f3b0ddc1ead0 api-inversion

No more indata The mmap()ed version of the input data was never used, so zap it everywhere.
author mas01cr
date Wed, 24 Dec 2008 10:57:18 +0000
parents b75c1e826058
children 93ce12fe2f76
comparison
equal deleted inserted replaced
453:16a903968d18 454:f3b0ddc1ead0
333 // Open and check dimensions of feature file 333 // Open and check dimensions of feature file
334 strncpy(prefixedString, featureFileNameTable+trackID*O2_FILETABLE_ENTRY_SIZE, O2_MAXFILESTR); 334 strncpy(prefixedString, featureFileNameTable+trackID*O2_FILETABLE_ENTRY_SIZE, O2_MAXFILESTR);
335 prefix_name((char ** const) &prefixedString, adb_feature_root); 335 prefix_name((char ** const) &prefixedString, adb_feature_root);
336 if(prefixedString!=tmpStr) 336 if(prefixedString!=tmpStr)
337 delete[] tmpStr; 337 delete[] tmpStr;
338 initInputFile(prefixedString, false); // nommap, file pointer at correct position 338 initInputFile(prefixedString);
339 trackfd = infid; 339 trackfd = infid;
340 } 340 }
341 if(audiodb_read_data(adb, trackfd, trackID, &fvp, &nfv)) 341 if(audiodb_read_data(adb, trackfd, trackID, &fvp, &nfv))
342 error("failed to read data"); 342 error("failed to read data");
343 *fvpp = fvp; // Protect memory allocation and free() for track data 343 *fvpp = fvp; // Protect memory allocation and free() for track data