DirectShow: clear current video frame when stopping.

Change-Id: I063d8a1b95f3d751f55dfce7fa2cb749177dc906
Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
This commit is contained in:
Yoann Lopes
2015-10-31 19:28:23 +01:00
parent 4c189b18c3
commit 556fa07121

View File

@@ -147,6 +147,14 @@ HRESULT VideoSurfaceFilter::Stop()
m_sampleScheduler.stop();
if (thread() == QThread::currentThread()) {
flush();
} else {
QMutexLocker locker(&m_mutex);
m_loop->postEvent(this, new QEvent(QEvent::Type(FlushSurface)));
m_wait.wait(&m_mutex);
}
return S_OK;
}