1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00

Fix error z level

Fix conversion of file missinterpreted as an error
This commit is contained in:
kelteseth 2018-10-18 12:53:46 +02:00
parent ac8b360ecd
commit c16edb7a84
2 changed files with 14 additions and 5 deletions

View File

@ -78,6 +78,7 @@ Item {
Item {
id: wrapperSteps
z:10
anchors.fill: parent
Text {
@ -398,11 +399,13 @@ Item {
PropertyChanges {
target: wrapperSteps
opacity: 0
z:0
}
PropertyChanges {
target: wrapperError
opacity: 1
}
}
]
transitions: [

View File

@ -214,10 +214,13 @@ bool Create::createWallpaperVideoPreview(CreateWallpaperData& createWallpaperDat
qDebug() << tmpErr;
qDebug() << proConvertPreviewMP4.data()->readAllStandardOutput();
qDebug() << proConvertPreviewMP4.data()->readAll();
QFile previewVideo(createWallpaperData.exportPath + "/preview.mp4");
if (!previewVideo.exists() && !(previewVideo.size() > 0)) {
emit processOutput(tmpErr);
emit createWallpaperStateChanged(Create::State::ConvertingPreviewVideoError);
return false;
}
}
// qDebug() << proConvertPreviewMP4.data()->program() << proConvertPreviewMP4.data()->arguments();
// qDebug() << "Done converting video to preview" << proConvertPreviewMP4.data()->readAll() << "\n"
// << proConvertPreviewMP4.data()->readAllStandardError();
@ -251,9 +254,12 @@ bool Create::createWallpaperVideoPreview(CreateWallpaperData& createWallpaperDat
proConvertGif.data()->start();
proConvertGif.data()->waitForFinished(-1);
if (!proConvertGif.data()->readAllStandardError().isEmpty()) {
QFile previewGif(createWallpaperData.exportPath + "/preview.gif");
if (!previewGif.exists() && !(previewGif.size() > 0)) {
emit createWallpaperStateChanged(Create::State::ConvertingPreviewGifError);
return false;
}
}
// qDebug() << proConvertGif.data()->program() << proConvertGif.data()->arguments();
// qDebug() << "Done converting video to preview" << proConvertGif.data()->readAll() << "\n"