javauis/mmapi_akn/baseline/src/cmmavideourlplayerlivestreamdelegate.cpp
branchRCL_3
changeset 71 d5e927d5853b
parent 66 2455ef1f5bbc
child 77 7cee158cb8cd
--- a/javauis/mmapi_akn/baseline/src/cmmavideourlplayerlivestreamdelegate.cpp	Wed Sep 01 12:33:18 2010 +0100
+++ b/javauis/mmapi_akn/baseline/src/cmmavideourlplayerlivestreamdelegate.cpp	Tue Sep 14 21:06:50 2010 +0300
@@ -151,6 +151,9 @@
         if (iActiveSchedulerWait->IsStarted())
         {
             DEBUG("MMA:CMMAVideoUrlPlayer: Live stream: KMMFEventCategoryVideoLoadingComplete ASW Stop");
+            // calling PrepareDisplay() in the nick of time as this takes over the control of window and 
+            // any UI widget can't be drawn after this call at the prescribed area for video display.
+            iPlayer.PrepareDisplay();
             iActiveSchedulerWait->AsyncStop();
         }
         if (err != KErrNone)
@@ -166,10 +169,7 @@
         // going to prefetch state, after Play
         // KMMFEventCategoryVideoLoadingComplete event will be received
 
-        if (err == KErrNone)
-        {
-            iPlayer.PrepareDisplay();
-        }
+
 
         // For live streams: complete prefetch.
         // if activeschedulerwait is started, then