videoplayback/videoplaybackviews/src/mpxvideoplaybackdisplayhandler.cpp
changeset 2 dec420019252
parent 0 96612d01cf9f
child 6 7d91903f795f
equal deleted inserted replaced
1:6711b85517b7 2:dec420019252
    13 *
    13 *
    14 * Description:   Implementation of video playback display handler
    14 * Description:   Implementation of video playback display handler
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 6 %
    18 // Version : %version: 7 %
    19 
    19 
    20 #include <sysutil.h>
    20 #include <sysutil.h>
    21 #include <s32file.h>
    21 #include <s32file.h>
    22 #include <mpxcommand.h>
    22 #include <mpxcommand.h>
    23 #include <mpxcommandgeneraldefs.h>
    23 #include <mpxcommandgeneraldefs.h>
   418 //
   418 //
   419 void CMPXVideoPlaybackDisplayHandler::SurfaceCreatedL( CMPXMessage* aMessage )
   419 void CMPXVideoPlaybackDisplayHandler::SurfaceCreatedL( CMPXMessage* aMessage )
   420 {
   420 {
   421     MPX_ENTER_EXIT(_L("CMPXVideoPlaybackDisplayHandler::SurfaceCreatedL()"));
   421     MPX_ENTER_EXIT(_L("CMPXVideoPlaybackDisplayHandler::SurfaceCreatedL()"));
   422 
   422 
       
   423     TSurfaceId oldSurfaceId = iSurfaceId;
       
   424     
   423     //
   425     //
   424     //  Extract the surface parameters from the message
   426     //  Extract the surface parameters from the message
   425     //
   427     //
   426     iSurfaceId = aMessage->ValueTObjectL<TSurfaceId>( KMPXMediaVideoDisplayTSurfaceId );
   428     iSurfaceId = aMessage->ValueTObjectL<TSurfaceId>( KMPXMediaVideoDisplayTSurfaceId );
   427     iCropRect = aMessage->ValueTObjectL<TRect>( KMPXMediaVideoDisplayCropRect );
   429     iCropRect = aMessage->ValueTObjectL<TRect>( KMPXMediaVideoDisplayCropRect );
   430     if ( iVideoDisplay )
   432     if ( iVideoDisplay )
   431     {
   433     {
   432         //
   434         //
   433         //  Remove old surface if one exists
   435         //  Remove old surface if one exists
   434         //
   436         //
   435         if ( iSurfaceId.IsNull() )
   437         if ( ! oldSurfaceId.IsNull() )
   436         {
   438         {
   437             iVideoDisplay->RemoveSurface();
   439             iVideoDisplay->RemoveSurface();
   438         }
   440         }
   439 
   441 
   440         //
   442         //