Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-104483

ASSERT: "viewport.size() == size" in qquickvideooutput.cpp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 6.2.6, 6.4.0 RC1, 6.5.0 Beta1
    • 6.2.4, 6.3.1
    • Multimedia
    • None
    • Windows 10
    • a573a6f507 (qt/qtmultimedia/dev) a573a6f507 (qt/tqtc-qtmultimedia/dev) 48413bf92e (qt/qtmultimedia/6.4) 6376640a90 (qt/qtmultimedia/6.3) 6376640a90 (qt/tqtc-qtmultimedia/6.3) 48413bf92e (qt/tqtc-qtmultimedia/6.4) db86175f0c (qt/tqtc-qtmultimedia/6.2)

      ASSERT on QQuickVideoOutput::sourceRect() for vertically oriented videos.
      Reproduced 100% at least on Windows, but I don't think it's platform specific.

      Code sample:

      import QtQuick
      import QtMultimedia
      
      Window {
          id: window
          width: 640
          height: 480
          visible: true
      
          VideoOutput {
              id: vo
              anchors.fill: parent
              onSourceRectChanged: console.log(sourceRect) // <-- ASSERT HERE
          }
      
          MediaPlayer {
              videoOutput: vo
              source: "https://bugreports.qt.io/secure/attachment/122241/sample.mp4"
              onMediaStatusChanged: {
                  if (mediaStatus == MediaPlayer.LoadedMedia)
                      play()
              }
          }
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            piotr Piotr Srebrny (Inactive)
            studiosus Vladimir Belyavsky
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes