summaryrefslogtreecommitdiffstats
path: root/src/plugins/directshow/common/directshowvideoprobecontrol.h
diff options
context:
space:
mode:
authorVal Doroshchuk <valentyn.doroshchuk@qt.io>2019-09-11 15:00:03 +0200
committerVal Doroshchuk <valentyn.doroshchuk@qt.io>2019-09-27 10:26:56 +0200
commit5323fcef6cfcaa14ff6a7f53c546020d523f8186 (patch)
tree2f78af5186c83707cc5a1efd3da90cac1e42caaa /src/plugins/directshow/common/directshowvideoprobecontrol.h
parentd34c71a67c9a30ab67da0b6ad11c198bfe2b242d (diff)
DirectShow: Implement QMediaVideoProbeControl->flush
Need to flush when at least one frame is probed and stop is called, EOS or QMediaPlayer is destroyed. Fixes BFAIL : tst_QMediaPlayerBackend::probes() '(probeHandler.isVideoFlushCalled)' returned FALSE. () Task-number: QTBUG-46368 Change-Id: I09ebd6608c9a1b8a0a0707d83200d75ddb435734 Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
Diffstat (limited to 'src/plugins/directshow/common/directshowvideoprobecontrol.h')
-rw-r--r--src/plugins/directshow/common/directshowvideoprobecontrol.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/directshow/common/directshowvideoprobecontrol.h b/src/plugins/directshow/common/directshowvideoprobecontrol.h
index 458263234..57839f8d3 100644
--- a/src/plugins/directshow/common/directshowvideoprobecontrol.h
+++ b/src/plugins/directshow/common/directshowvideoprobecontrol.h
@@ -55,8 +55,11 @@ public:
bool ref() { return m_ref.ref(); }
bool deref() { return m_ref.deref(); }
+ void probeVideoFrame(const QVideoFrame &frame);
+ void flushVideoFrame();
private:
QAtomicInt m_ref;
+ bool m_frameProbed = false;
};
QT_END_NAMESPACE