Details
-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
5.15.2
-
Ubuntu 18.04, Gstreamer 1.18
Description
After playing of video stops, displayed frame has fixed position and size inside VideoOutput, even when you resize the widget. It also keeps this behavior when you start playing the video again. When you select different source, displayed video frame again starts adjusting to VideoOutput size as normal.
Behavior doesn't seem to depend on video file content, tested on 3 different formats.
How to reproduce:
1) Use this program
import QtQuick 2.15 import QtQuick.Window 2.15 import QtMultimedia 5.15 import QtQuick.Layouts 1.15 import QtQuick.Controls 2.15 Window { width: 640 height: 480 visible: true ColumnLayout { anchors.fill: parent Video { id: video Layout.fillWidth: true Layout.fillHeight: true source: "some_video_file" flushMode: VideoOutput.LastFrame } Button { onClicked: video.play() text: "Play" } } }
2) Press "Play" button.
3) Resize the window. Observe that video frame adjusts its position and size according to Video item size.
4) Wait until playing finishes.
5) Resize the window. Observe that the last video frame inside Video item keeps its position and size.
6) Press "Play" button. Observe that video frame keeps position and size.