mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-18 16:32:33 +02:00
Fix converter macos statements
This commit is contained in:
parent
3c90588220
commit
50e95cd8fb
@ -196,7 +196,7 @@ bool Create::createWallpaperVideoPreview()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef Q_OS_MACOS
|
#ifdef Q_OS_MACOS
|
||||||
pro.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg");
|
proConvertImage.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg");
|
||||||
#endif
|
#endif
|
||||||
proConvertImage.data()->start();
|
proConvertImage.data()->start();
|
||||||
|
|
||||||
@ -247,7 +247,7 @@ bool Create::createWallpaperVideoPreview()
|
|||||||
proConvertPreviewMP4.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg.exe");
|
proConvertPreviewMP4.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg.exe");
|
||||||
#endif
|
#endif
|
||||||
#ifdef Q_OS_MACOS
|
#ifdef Q_OS_MACOS
|
||||||
pro.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg");
|
proConvertPreviewMP4.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg");
|
||||||
#endif
|
#endif
|
||||||
emit createWallpaperStateChanged(Create::State::ConvertingPreviewVideo);
|
emit createWallpaperStateChanged(Create::State::ConvertingPreviewVideo);
|
||||||
|
|
||||||
@ -296,7 +296,7 @@ bool Create::createWallpaperVideoPreview()
|
|||||||
proConvertGif.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg.exe");
|
proConvertGif.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg.exe");
|
||||||
#endif
|
#endif
|
||||||
#ifdef Q_OS_MACOS
|
#ifdef Q_OS_MACOS
|
||||||
pro.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg");
|
proConvertGif.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg");
|
||||||
#endif
|
#endif
|
||||||
connect(this, &Create::abortCreateWallpaper, proConvertGif.data(), &QProcess::kill);
|
connect(this, &Create::abortCreateWallpaper, proConvertGif.data(), &QProcess::kill);
|
||||||
proConvertGif.data()->start();
|
proConvertGif.data()->start();
|
||||||
@ -355,7 +355,7 @@ bool Create::createWallpaperVideo()
|
|||||||
proConvertVideo.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg.exe");
|
proConvertVideo.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg.exe");
|
||||||
#endif
|
#endif
|
||||||
#ifdef Q_OS_MACOS
|
#ifdef Q_OS_MACOS
|
||||||
pro.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg");
|
proConvertVideo.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg");
|
||||||
#endif
|
#endif
|
||||||
qDebug() << "Start converting video";
|
qDebug() << "Start converting video";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user