Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-546

The overlay version of QGraphicsVideoItem crashes when paint() is called with a null pointer widget

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 1.1.0
    • 1.1.0
    • Multimedia
    • None
    • f8f32a2308c8fa43041c3bed7555234c0caeb256

      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.

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

            jmcphers Justin McPherson (closed Nokia identity) (Inactive)
            shausman Simon Hausmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes