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

[Reg: 5.15.7->5.15.8] App crashes by player() for QML MediaPlayer + VideoOutput with setAttribute (Qt::AA_UseOpenGLES)

    XMLWordPrintable

Details

    • Windows
    • fd8b8107e3 (qt/tqtc-qtmultimedia/5.15)

    Description

      The app crashes with QML MediaPlayer.play() when
      main.cpp

          QCoreApplication::setAttribute (Qt::AA_UseOpenGLES);
      

      main.qml

              MediaPlayer {
               id:player
               ...
               source: Qt.resolvedUrl("sample.mp4") 
               ...
              }
      
              VideoOutput {
                  id: vo
                  opacity: 0
                  source: player
                  flushMode: VideoOutput.LastFrame
                  onContentRectChanged: {
                      vo.opacity = 1
                  }
              }
      

      When it crashes/hangs, the dialog appears

      Sample code is attached qtbug102316-QtQMLVideoSample.zip. Please run and click the window to execute play().
      This works fine with Qt5.15.6 or 5.15.7.

      Attachments

        For Gerrit Dashboard: QTBUG-102316
        # Subject Branch Project Status CR V

        Activity

          People

            laknoll Lars Knoll
            nagrohn Nahomi Gröhn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes