summaryrefslogtreecommitdiffstats
path: root/src/multimedia/platform/qplatformvideosink_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/multimedia/platform/qplatformvideosink_p.h')
-rw-r--r--src/multimedia/platform/qplatformvideosink_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/multimedia/platform/qplatformvideosink_p.h b/src/multimedia/platform/qplatformvideosink_p.h
index 95d1aa085..6b5769067 100644
--- a/src/multimedia/platform/qplatformvideosink_p.h
+++ b/src/multimedia/platform/qplatformvideosink_p.h
@@ -101,6 +101,8 @@ public:
}
void setVideoFrame(const QVideoFrame &frame) {
setNativeSize(frame.size());
+ if (frame == m_currentVideoFrame)
+ return;
m_currentVideoFrame = frame;
m_currentVideoFrame.setSubtitleText(subtitleText());
sink->videoFrameChanged(m_currentVideoFrame);