Get rid of false positive warning when stopping video playback
The multimedia library actually creates two windows, and therefore the first call to updateHierarchy() would try to update the z-order of a no longer existing window. Change-Id: I499d049e2885ff848f38d9cc5880aa63235b1b4c Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>bb10
parent
47093dbfb4
commit
dee26fe973
|
|
@ -263,8 +263,10 @@ void QQnxScreen::updateHierarchy()
|
|||
|
||||
topZorder++;
|
||||
Q_FOREACH (screen_window_t overlay, m_overlays) {
|
||||
if (screen_set_window_property_iv(overlay, SCREEN_PROPERTY_ZORDER, &topZorder) != 0)
|
||||
qWarning("QQnxScreen: failed to update z order for overlay, errno=%d", errno);
|
||||
// Do nothing when this fails. This can happen if we have stale windows in mOverlays,
|
||||
// which in turn can happen because a window was removed but we didn't get a notification
|
||||
// yet.
|
||||
screen_set_window_property_iv(overlay, SCREEN_PROPERTY_ZORDER, &topZorder);
|
||||
topZorder++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue