diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-03-18 18:53:11 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-04-06 08:09:16 +0000 |
commit | 0ac391e0d6bdec37a5800b14fa24bab0f92d7e86 (patch) | |
tree | 4a0443eb6224bc13d100f4bb0688f0bb1075f79c /src/multimedia/video/qvideosink.cpp | |
parent | 27a65d5b2dbffe6a25865a3a0bb5f0cfec728a1a (diff) |
Fix Windowed playback on macOS
Windowed playback works again, and we're now using the new QVideoSink
for that.
Next step is to merge in the code for non windowed mode and ensure
we can handle both.
Change-Id: Ieaaad3adaa6c8964324ea55623380c630faea61b
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Doris Verria <doris.verria@qt.io>
Diffstat (limited to 'src/multimedia/video/qvideosink.cpp')
-rw-r--r-- | src/multimedia/video/qvideosink.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/multimedia/video/qvideosink.cpp b/src/multimedia/video/qvideosink.cpp index c5ed5301c..405c0b4a9 100644 --- a/src/multimedia/video/qvideosink.cpp +++ b/src/multimedia/video/qvideosink.cpp @@ -145,6 +145,7 @@ QRectF QVideoSink::targetRect() const void QVideoSink::setTargetRect(const QRectF &rect) { + d->videoSink->setDisplayRect(rect.toRect()); d->targetRect = rect; } |