Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
5.0.0
-
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