[Tracker] Letting the TIFF extractor use posix_fadvise




This is a patch that makes the tiff extractor use the posix_fadvise too.

Note that TIFFClose() does close() itself. You can't mix TIFFClose()
with tracker_file_close, as tracker_file_close also does the close()
call using fclose().

So this is a problem, as the FILE* part is leaked this way. Perhaps we
could reopen the fd so that fclose() would work fine?

Suggestions? We aren't applying this patch just yet btw.

-- 
Philip Van Hoof, freelance software developer
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
http://pvanhoof.be/blog
http://codeminded.be

Attachment: tiffextract.diff
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]