mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
66a5b394d7
commit
92dc441f02
1 changed files with 2 additions and 4 deletions
|
@ -90,13 +90,11 @@ void VideoFrameExtractor::processItem(QString originalFilename, QString filename
|
|||
// Since we couldn't sart ffmpeg, turn off thumbnailing
|
||||
// TODO: call the proper preferences-functions
|
||||
prefs.extract_video_thumbnails = false;
|
||||
report_error(qPrintable(tr("ffmpeg failed to start - video thumbnail creation suspended")));
|
||||
qDebug() << "Failed to start ffmpeg";
|
||||
report_error(qPrintable(tr("ffmpeg failed to start - video thumbnail creation suspended. To enable video thumbnailing, set working executable in preferences.")));
|
||||
return fail(originalFilename, duration, false);
|
||||
}
|
||||
if (!ffmpeg.waitForFinished()) {
|
||||
qDebug() << "Failed waiting for ffmpeg";
|
||||
report_error(qPrintable(tr("failed waiting for ffmpeg - video thumbnail creation suspended")));
|
||||
report_error(qPrintable(tr("Failed waiting for ffmpeg - video thumbnail creation suspended. To enable video thumbnailing, set working executable in preferences.")));
|
||||
return fail(originalFilename, duration, false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue