mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-13 11:38:24 -04:00
MSVC: Fix VST build
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include "Mixer.h"
|
||||
#include "Engine.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QDir>
|
||||
|
||||
#ifndef SYNC_WITH_SHM_FIFO
|
||||
@@ -78,7 +79,6 @@ RemotePlugin::RemotePlugin() :
|
||||
RemotePluginBase(),
|
||||
#endif
|
||||
m_failed( true ),
|
||||
m_process(),
|
||||
m_watcher( this ),
|
||||
m_commMutex( QMutex::Recursive ),
|
||||
m_splitChannels( false ),
|
||||
@@ -120,6 +120,11 @@ RemotePlugin::RemotePlugin() :
|
||||
qWarning( "Unable to start the server." );
|
||||
}
|
||||
#endif
|
||||
|
||||
connect( &m_process, SIGNAL( finished( int, QProcess::ExitStatus ) ),
|
||||
this, SLOT( processFinished( int, QProcess::ExitStatus ) ) );
|
||||
connect( &m_process, SIGNAL( errorOccured( QProcess::ProcessError ) ),
|
||||
this, SLOT( processErrored( QProcess::ProcessError ) ) );
|
||||
}
|
||||
|
||||
|
||||
@@ -219,9 +224,6 @@ bool RemotePlugin::init(const QString &pluginExecutable,
|
||||
qDebug() << exec << args;
|
||||
#endif
|
||||
|
||||
connect( &m_process, SIGNAL( finished( int, QProcess::ExitStatus ) ),
|
||||
this, SLOT( processFinished( int, QProcess::ExitStatus ) ) );
|
||||
|
||||
#ifndef SYNC_WITH_SHM_FIFO
|
||||
struct pollfd pollin;
|
||||
pollin.fd = m_server;
|
||||
@@ -454,11 +456,24 @@ void RemotePlugin::resizeSharedProcessingMemory()
|
||||
void RemotePlugin::processFinished( int exitCode,
|
||||
QProcess::ExitStatus exitStatus )
|
||||
{
|
||||
if ( exitStatus == QProcess::CrashExit )
|
||||
{
|
||||
qCritical() << "Remote plugin crashed";
|
||||
}
|
||||
else if ( exitCode )
|
||||
{
|
||||
qCritical() << "Remote plugin exit code: " << exitCode;
|
||||
}
|
||||
#ifndef SYNC_WITH_SHM_FIFO
|
||||
invalidate();
|
||||
#endif
|
||||
}
|
||||
|
||||
void RemotePlugin::processErrored( QProcess::ProcessError err )
|
||||
{
|
||||
qCritical() << "Process error: " << err;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user