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

QGraphicsVideoItem and QMediaPlayer with wmf-Backend crash when restarting video

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.0.1
    • 5.0.0
    • Multimedia
    • None
    • Windows7, Visual Studio 2012, 32-bit

    Description

      Using QGraphicsVideoItem inside QGraphicsView together with QMediaPlayer causes an access violation in wmfengined.dll

      Steps to reproduce (see sample application for details)

      1. Setup:
      (see initGraphicsView() in sample)

      QGraphicsVideoItem* videoItem = new QGraphicsVideoItem();
      videoItem->setSize(ui.graphicsView->size());

      m_Player.setVideoOutput(videoItem);

      ui.graphicsView->setScene(&m_Scene);
      m_Scene.addItem(videoItem);

      2. Start playing
      m_Player.setMedia(QUrl::fromLocalFile(path));
      m_Player.play();

      3. Before video ends, restart again (with same video-file or other)
      -> gives access violation in:
      void MFVideoRendererControl::customEvent(QEvent *event)

      Futher notes:
      Using QVideoWidget and QWidget instead of QGraphicsView (see initVideoWidget() in sample) does not have this problem

      Attachments

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

        Activity

          People

            ylopes Yoann Lopes
            work7 Siebenhandl
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes