tvout/tvoutwrapper/src/glxtvoutwrapper_p.cpp
changeset 70 a91aa46552be
parent 55 fb37077c270f
child 69 45459746d5e8
--- a/tvout/tvoutwrapper/src/glxtvoutwrapper_p.cpp	Fri Sep 17 08:29:24 2010 +0300
+++ b/tvout/tvoutwrapper/src/glxtvoutwrapper_p.cpp	Mon Oct 04 00:17:18 2010 +0300
@@ -180,20 +180,20 @@
 // setToNativeMode 
 // -----------------------------------------------------------------------------
 void GlxTvOutWrapperPrivate::SetToNativeMode()
-    {
+{
     TRACER("GlxTvOutWrapperPrivate::SetToNativeMode()");
     iIsPhotosInForeground = true;
-    
-    if(iHdmiController && iHdmiConnected) {
-    if (!isImageSetToHdmi){
+
+    if ( iHdmiConnected ) {
+        if ( !isImageSetToHdmi ) {
+            SetNewImage(); // this case can occur when FS image is opened and set to background
+            // HDMI cable connected and then FS is brought to foreground
+        }
     }
-    SetNewImage(); // this case can occur when FS image is opened and set to background
-                   // HDMI cable connected and then FS is brought to foreground
+    else {
+        iHdmiController->ShiftToPostingMode();
     }
-    else{
-    iHdmiController->ShiftToPostingMode();
-    }
-    }
+}
 
 // -----------------------------------------------------------------------------
 // itemNotSupported