Stay away from unnecessary code paths if the movie is 0 (NULL)
authorJonas Rabbe <jonas.rabbe@nokia.com>
Thu, 30 Jun 2011 04:35:59 +0000 (14:35 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 5 Jul 2011 04:50:08 +0000 (06:50 +0200)
commitd13d75949f2582091fd07590716f01622233a250
treefe5efe3309bb3eabf11444c972de12c96629f8af
parentca25844e528432dfa55e5136bf56faeb0b47c937
Stay away from unnecessary code paths if the movie is 0 (NULL)

When closing a QT7PlayerSession, it sets the movie to 0. There is no
need to check if a NULL movie supports the core pixel formats, and
that check lead to a segmentation fault with QtSDK 1.1.1.

Task-number: QTMOBILITY-1746
Reviewed-by: Dmytro Poplavskiy
(cherry picked from commit b5d9964aab96ef1a02ca1af411178f05c42c2bf8)

Change-Id: I7cdddbd8fc1b8d8d667747aec3567aeb857accd6
Reviewed-on: http://codereview.qt.nokia.com/984
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard
src/plugins/qt7/qt7movieviewrenderer.mm