DirectShow: clear current video frame when stopping.
Change-Id: I063d8a1b95f3d751f55dfce7fa2cb749177dc906 Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
This commit is contained in:
@@ -147,6 +147,14 @@ HRESULT VideoSurfaceFilter::Stop()
|
|||||||
|
|
||||||
m_sampleScheduler.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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user