videoplayback/videohelix/src/mpxvideoplaybackstate.cpp
branchRCL_3
changeset 21 315810614048
parent 20 2d690156cf8f
--- a/videoplayback/videohelix/src/mpxvideoplaybackstate.cpp	Thu Jul 15 18:41:27 2010 +0300
+++ b/videoplayback/videohelix/src/mpxvideoplaybackstate.cpp	Thu Aug 19 09:57:17 2010 +0300
@@ -16,7 +16,7 @@
 */
 
 
-// Version : %version: 46 %
+// Version : %version: 48 %
 
 
 //
@@ -177,7 +177,7 @@
 //  ------------------------------------------------------------------------------------------------
 void CMPXVideoPlaybackState::HandleSetPosterFrame()
 {
-    MPX_DEBUG(_L("CMPXVideoPlaybackState::HandleSetPosterFrame()"));    
+    MPX_DEBUG(_L("CMPXVideoPlaybackState::HandleSetPosterFrame()"));
 }
 
 //  ------------------------------------------------------------------------------------------------
@@ -239,10 +239,10 @@
     MPX_ENTER_EXIT(_L("CMPXVideoPlaybackState::HandlePlaybackComplete()"),
                    _L("error = %d"), aError );
 
+    iVideoPlaybackCtlr->ChangeState( EMPXVideoStopped );
+
     if ( aError == KErrNone )
     {
-        iVideoPlaybackCtlr->ChangeState( EMPXVideoStopped );
-
         iVideoPlaybackCtlr->iMPXPluginObs->HandlePluginEvent(
             MMPXPlaybackPluginObserver::EPPlayComplete,
             0,
@@ -1275,6 +1275,16 @@
     CommandHandleForeground();
 }
 
+//  ------------------------------------------------------------------------------------------------
+//  CMPXInitialisedState::HandlePause()
+//  ------------------------------------------------------------------------------------------------
+void CMPXInitialisedState::HandlePause()
+{
+    MPX_ENTER_EXIT(_L("CMPXInitialisedState::HandlePause()"));
+
+    iVideoPlaybackCtlr->iPlaybackMode->HandlePause();
+}
+
 // *************************************************************************************************
 //
 //                          CMPXPlayingState
@@ -1377,8 +1387,8 @@
 void CMPXPlayingState::HandleSetPosterFrame()
 {
     MPX_DEBUG(_L("CMPXPlayingState::HandleSetPosterFrame()"));
-    
-    iVideoPlaybackCtlr->iPlaybackMode->HandleSetPosterFrame();    
+
+    iVideoPlaybackCtlr->iPlaybackMode->HandleSetPosterFrame();
 }
 
 
@@ -1542,8 +1552,8 @@
 //  ------------------------------------------------------------------------------------------------
 void CMPXPausedState::HandleSetPosterFrame()
 {
-    MPX_DEBUG(_L("CMPXPausedState::HandleSetPosterFrame()"));    
-    
+    MPX_DEBUG(_L("CMPXPausedState::HandleSetPosterFrame()"));
+
     iVideoPlaybackCtlr->iPlaybackMode->HandleSetPosterFrame();
 }
 
@@ -1640,8 +1650,8 @@
     }
     else
     {
-        // As the custom play command could not resume the playback. Send a pause event to 
-        // the view though the MPX FW to get the view state in sync playback plugin. 
+        // As the custom play command could not resume the playback. Send a pause event to
+        // the view though the MPX FW to get the view state in sync playback plugin.
         iVideoPlaybackCtlr->iMPXPluginObs->HandlePluginEvent( MMPXPlaybackPluginObserver::EPPaused,
                                                               0,
                                                               KErrNone );