diff --git a/ScreenPlay/src/create.cpp b/ScreenPlay/src/create.cpp index 6f6f481f..d0a27eaf 100644 --- a/ScreenPlay/src/create.cpp +++ b/ScreenPlay/src/create.cpp @@ -196,7 +196,7 @@ bool Create::createWallpaperVideoPreview() #endif #ifdef Q_OS_MACOS - pro.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg"); + proConvertImage.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg"); #endif proConvertImage.data()->start(); @@ -247,7 +247,7 @@ bool Create::createWallpaperVideoPreview() proConvertPreviewMP4.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg.exe"); #endif #ifdef Q_OS_MACOS - pro.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg"); + proConvertPreviewMP4.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg"); #endif emit createWallpaperStateChanged(Create::State::ConvertingPreviewVideo); @@ -296,7 +296,7 @@ bool Create::createWallpaperVideoPreview() proConvertGif.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg.exe"); #endif #ifdef Q_OS_MACOS - pro.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg"); + proConvertGif.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg"); #endif connect(this, &Create::abortCreateWallpaper, proConvertGif.data(), &QProcess::kill); proConvertGif.data()->start(); @@ -355,7 +355,7 @@ bool Create::createWallpaperVideo() proConvertVideo.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg.exe"); #endif #ifdef Q_OS_MACOS - pro.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg"); + proConvertVideo.data()->setProgram(QApplication::applicationDirPath() + "/ffmpeg"); #endif qDebug() << "Start converting video";