mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
Ensure buffering is used when writing uncompressed images
Just feed them through the libarchive workflow as well. Prevents issues on Windows/osx when writing uncompressed images that come from the Internet. Ref #473
This commit is contained in:
parent
2c00c64aba
commit
9c95398210
1 changed files with 1 additions and 6 deletions
|
@ -277,7 +277,7 @@ void ImageWriter::startWrite()
|
||||||
{
|
{
|
||||||
_thread = new LocalFileExtractThread(urlstr, _dst.toLatin1(), _expectedHash, this);
|
_thread = new LocalFileExtractThread(urlstr, _dst.toLatin1(), _expectedHash, this);
|
||||||
}
|
}
|
||||||
else if (compressed)
|
else
|
||||||
{
|
{
|
||||||
_thread = new DownloadExtractThread(urlstr, _dst.toLatin1(), _expectedHash, this);
|
_thread = new DownloadExtractThread(urlstr, _dst.toLatin1(), _expectedHash, this);
|
||||||
if (_repo.toString() == OSLIST_URL)
|
if (_repo.toString() == OSLIST_URL)
|
||||||
|
@ -287,11 +287,6 @@ void ImageWriter::startWrite()
|
||||||
tele->start();
|
tele->start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
_thread = new DownloadThread(urlstr, _dst.toLatin1(), _expectedHash, this);
|
|
||||||
_thread->setInputBufferSize(IMAGEWRITER_UNCOMPRESSED_BLOCKSIZE);
|
|
||||||
}
|
|
||||||
|
|
||||||
connect(_thread, SIGNAL(success()), SLOT(onSuccess()));
|
connect(_thread, SIGNAL(success()), SLOT(onSuccess()));
|
||||||
connect(_thread, SIGNAL(error(QString)), SLOT(onError(QString)));
|
connect(_thread, SIGNAL(error(QString)), SLOT(onError(QString)));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue