src/3rdparty/phonon/ds9/videowidget.cpp
changeset 7 f7bc934e204c
parent 0 1918ee327afb
child 30 5dc02b23752f
--- a/src/3rdparty/phonon/ds9/videowidget.cpp	Tue Feb 02 00:43:10 2010 +0200
+++ b/src/3rdparty/phonon/ds9/videowidget.cpp	Wed Mar 31 11:06:36 2010 +0300
@@ -218,6 +218,9 @@
             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) {