Thumbnailer: improve error message

In the error messages shown when failing to start ffmpeg, instruct
the user to set the correct executable in the preferences.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-07-05 21:49:29 +02:00 committed by Dirk Hohndel
parent 66a5b394d7
commit 92dc441f02

View file

@ -90,13 +90,11 @@ void VideoFrameExtractor::processItem(QString originalFilename, QString filename
// Since we couldn't sart ffmpeg, turn off thumbnailing // Since we couldn't sart ffmpeg, turn off thumbnailing
// TODO: call the proper preferences-functions // TODO: call the proper preferences-functions
prefs.extract_video_thumbnails = false; prefs.extract_video_thumbnails = false;
report_error(qPrintable(tr("ffmpeg failed to start - video thumbnail creation suspended"))); report_error(qPrintable(tr("ffmpeg failed to start - video thumbnail creation suspended. To enable video thumbnailing, set working executable in preferences.")));
qDebug() << "Failed to start ffmpeg";
return fail(originalFilename, duration, false); return fail(originalFilename, duration, false);
} }
if (!ffmpeg.waitForFinished()) { if (!ffmpeg.waitForFinished()) {
qDebug() << "Failed waiting for ffmpeg"; report_error(qPrintable(tr("Failed waiting for ffmpeg - video thumbnail creation suspended. To enable video thumbnailing, set working executable in preferences.")));
report_error(qPrintable(tr("failed waiting for ffmpeg - video thumbnail creation suspended")));
return fail(originalFilename, duration, false); return fail(originalFilename, duration, false);
} }