diff -r dec420019252 -r 7d91903f795f videoplayback/videohelix/src/mpxvideoplayerutility.cpp --- a/videoplayback/videohelix/src/mpxvideoplayerutility.cpp Tue Feb 02 00:12:10 2010 +0200 +++ b/videoplayback/videohelix/src/mpxvideoplayerutility.cpp Fri Feb 19 22:52:52 2010 +0200 @@ -12,10 +12,10 @@ * Contributors: * * Description: This class is the interface between the playback plugin and RMMFController - * +* */ -// Version : %version: 13 % +// Version : %version: 15 % #include @@ -66,8 +66,6 @@ MPX_ENTER_EXIT(_L("CMpxVideoPlayerUtility::~CMpxVideoPlayerUtility()")); Close(); - - delete iControllerEventMonitor; } void CMpxVideoPlayerUtility::Close() @@ -226,9 +224,9 @@ TUint32 CMpxVideoPlayerUtility::FourCCCode() const { - TFourCC aFourCC( 0 ); + TFourCC aFourCC( 0 ); iVideoControllerCustomCommands.GetAudioCodec( aFourCC ); - + return aFourCC.FourCC(); } @@ -513,13 +511,6 @@ error = iVideoPlaySurfaceSupportCustomCommands.SurfaceRemoved( oldSurfaceId ); } } - else - { - if ( replaceSurface ) - { - iVideoPlaySurfaceSupportCustomCommands.SurfaceRemoved( oldSurfaceId ); - } - } return error; } @@ -609,10 +600,10 @@ CMPXMessage* msg = CMPXMessage::NewL(); CleanupStack::PushL( msg ); - msg->SetTObjectValueL( KMPXMessageGeneralId, KMPXMediaIdVideoDisplayMessage ); + msg->SetTObjectValueL( KMPXMessageGeneralId, KMPXMediaIdVideoDisplaySyncMessage ); msg->SetTObjectValueL( KMPXMediaVideoDisplayCommand, aCmd ); - iVideoPlaybackController->iMPXPluginObs->HandlePlaybackMessage( msg, KErrNone ); + iVideoPlaybackController->iMPXPluginObs->HandlePlaybackSyncMessage( *msg ); CleanupStack::PopAndDestroy( msg ); } @@ -635,13 +626,13 @@ CMPXMessage* msg = CMPXMessage::NewL(); CleanupStack::PushL( msg ); - msg->SetTObjectValueL( KMPXMessageGeneralId, KMPXMediaIdVideoDisplayMessage ); + msg->SetTObjectValueL( KMPXMessageGeneralId, KMPXMediaIdVideoDisplaySyncMessage ); msg->SetTObjectValueL( KMPXMediaVideoDisplayCommand, aCmd ); msg->SetTObjectValueL( KMPXMediaVideoDisplayTSurfaceId, aSurfaceId ); msg->SetTObjectValueL( KMPXMediaVideoDisplayCropRect, aCropRect ); msg->SetTObjectValueL( KMPXMediaVideoDisplayAspectRatio, aAspectRatio ); - iVideoPlaybackController->iMPXPluginObs->HandlePlaybackMessage( msg, KErrNone ); + iVideoPlaybackController->iMPXPluginObs->HandlePlaybackSyncMessage( *msg ); CleanupStack::PopAndDestroy( msg ); }