mirror of
				https://github.com/taglib/taglib.git
				synced 2025-10-30 23:36:29 -04:00 
			
		
		
		
	Fix mismatched file I/O buffer sizes.
This commit is contained in:
		| @ -66,15 +66,6 @@ | ||||
|  | ||||
| using namespace TagLib; | ||||
|  | ||||
| namespace | ||||
| { | ||||
| #ifdef _WIN32 | ||||
|   const TagLib::uint BufferSize = 8192; | ||||
| #else | ||||
|   const TagLib::uint BufferSize = 1024; | ||||
| #endif | ||||
| } | ||||
|  | ||||
| class File::FilePrivate | ||||
| { | ||||
| public: | ||||
| @ -499,7 +490,7 @@ bool File::isWritable(const char *file) | ||||
|  | ||||
| TagLib::uint File::bufferSize() | ||||
| { | ||||
|   return BufferSize; | ||||
|   return 1024; | ||||
| } | ||||
|  | ||||
| void File::setValid(bool valid) | ||||
|  | ||||
| @ -45,7 +45,6 @@ namespace | ||||
|   typedef FileName FileNameHandle; | ||||
|   typedef HANDLE FileHandle; | ||||
|  | ||||
|   const TagLib::uint BufferSize = 8192; | ||||
|   const FileHandle InvalidFileHandle = INVALID_HANDLE_VALUE; | ||||
|  | ||||
|   inline FileHandle openFile(const FileName &path, bool readOnly) | ||||
| @ -93,7 +92,6 @@ namespace | ||||
|  | ||||
|   typedef FILE* FileHandle; | ||||
|  | ||||
|   const TagLib::uint BufferSize = 8192; | ||||
|   const FileHandle InvalidFileHandle = 0; | ||||
|  | ||||
|   inline FileHandle openFile(const FileName &path, bool readOnly) | ||||
| @ -497,5 +495,5 @@ void FileStream::truncate(long length) | ||||
|  | ||||
| TagLib::uint FileStream::bufferSize() | ||||
| { | ||||
|   return BufferSize; | ||||
|   return 1024; | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user