Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
1.1.0
-
None
-
f8f32a2308c8fa43041c3bed7555234c0caeb256
Description
When the overlay version of QGraphicsVideoItem is compiled (qgraphicsvideoitem_overlay.cpp), calling QGraphicsVideoItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) with a null-pointer for the QWidget causes a crash, because the implementation unconditionally dereferences the widget:
d->windowControl->setWinId(widget->winId())
The widget parameter is option, so QGraphicsVideoItem shouldn't crash at least.