diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2010-02-01 11:49:37 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2010-02-01 11:55:36 (GMT) |
commit | d785467dbb97d4be9de66504dd6fb891da19abff (patch) | |
tree | 4ae42d0eb1cf70a89777d68f33083322a6c1b9ff /src/3rdparty/phonon/ds9 | |
parent | 4a83af372b965b6dbe25f6a08e14aee09bb9355e (diff) | |
download | Qt-d785467dbb97d4be9de66504dd6fb891da19abff.zip Qt-d785467dbb97d4be9de66504dd6fb891da19abff.tar.gz Qt-d785467dbb97d4be9de66504dd6fb891da19abff.tar.bz2 |
fix crash in Phonon::DS9 backend
When using a VideoWidget in a QGraphicsProxyWidget, then Phonon::DS9
crashed, if the VideoWidget didn't have a MediaSource.
Reviewed-by: Thierry
Diffstat (limited to 'src/3rdparty/phonon/ds9')
-rw-r--r-- | src/3rdparty/phonon/ds9/videowidget.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/3rdparty/phonon/ds9/videowidget.cpp b/src/3rdparty/phonon/ds9/videowidget.cpp index 091be16..95423c6 100644 --- a/src/3rdparty/phonon/ds9/videowidget.cpp +++ b/src/3rdparty/phonon/ds9/videowidget.cpp @@ -218,6 +218,9 @@ namespace Phonon if (toNative && m_noNativeRendererSupported) return current; //no switch here + if (!mediaObject()) + return current; + //firt we delete the renderer //initialization of the widgets for(int i = 0; i < FILTER_COUNT; ++i) { |