mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-18 16:32:33 +02:00
Fix read output
This commit is contained in:
parent
adc14d1e9d
commit
c5f609d0d2
@ -313,7 +313,7 @@ bool Create::createWallpaperVideoPreview()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this->processOutput(proConvertPreviewMP4.data()->readAll());
|
this->processOutput(proConvertGif.data()->readAll());
|
||||||
proConvertGif.data()->close();
|
proConvertGif.data()->close();
|
||||||
emit createWallpaperStateChanged(Create::State::ConvertingPreviewGifFinished);
|
emit createWallpaperStateChanged(Create::State::ConvertingPreviewGifFinished);
|
||||||
|
|
||||||
@ -455,8 +455,8 @@ bool Create::createWallpaperVideo()
|
|||||||
{
|
{
|
||||||
QCoreApplication::processEvents();
|
QCoreApplication::processEvents();
|
||||||
}
|
}
|
||||||
disconnect(this, &Create::abortCreateWallpaper, proConvertVideo.data(), &QProcess::kill);
|
|
||||||
disconnect(proConvertVideo.data(), &QProcess::readyReadStandardOutput, nullptr, nullptr);
|
disconnect(proConvertVideo.data(), &QProcess::readyReadStandardOutput, nullptr, nullptr);
|
||||||
|
disconnect(this, &Create::abortCreateWallpaper, proConvertVideo.data(), &QProcess::kill);
|
||||||
|
|
||||||
QString out = proConvertVideo.data()->readAllStandardOutput();
|
QString out = proConvertVideo.data()->readAllStandardOutput();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user