Skip to content

Commit

Permalink
Skip Nvidia check if the Cuda library is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
skyhisi committed Aug 9, 2023
1 parent 14e3c0c commit 4aff8f7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/clipmergewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <QtGlobal>
#include <QDateTime>
#include <QSettings>
#include <QLibrary>

#include "mp4file.hpp"
#include "toollocator.hpp"
Expand Down Expand Up @@ -484,6 +485,15 @@ void ClipMergeWidget::cancelMerge()

void ClipMergeWidget::nvencCheckStart()
{
#ifdef Q_OS_LINUX
QLibrary libcuda("cuda");
if (!libcuda.load())
{
qDebug() << "Failed to locate libcuda, skipping ffmpeg check: " << libcuda.errorString();
return;
}
libcuda.unload();
#endif
QStringList nvencCheckArgs;
nvencCheckArgs
<< "-hide_banner"
Expand Down

0 comments on commit 4aff8f7

Please sign in to comment.