diff -r 71c436fe3ce0 -r 4376525cdefb javauis/mmapi_akn/src_drmv2/src/cmmadrmaudioplayer.cpp --- a/javauis/mmapi_akn/src_drmv2/src/cmmadrmaudioplayer.cpp Wed Jun 09 09:34:07 2010 +0300 +++ b/javauis/mmapi_akn/src_drmv2/src/cmmadrmaudioplayer.cpp Mon Jun 21 15:32:50 2010 +0300 @@ -99,7 +99,7 @@ DEBUG("MMA: CMMAMidiPlayer: DeallocateL -"); } -void CMMADRMAudioPlayer::StartL() +void CMMADRMAudioPlayer::StartL(TBool aPostEvent) { // start can't be called to not ready player ASSERT(iState == EPrefetched); @@ -125,9 +125,12 @@ iUtility->Play(); - // inform java side PostActionCompleted(KErrNone); // java start return - PostLongEvent(CMMAPlayerEvent::EStarted, time); + if (aPostEvent) + { + // inform java side + PostLongEvent(CMMAPlayerEvent::EStarted, time); + } ChangeState(EStarted); } @@ -275,7 +278,7 @@ if (iRepeatForever || iRepeatCount < iRepeatNumberOfTimes) { - StartL(); + StartL(ETrue); } else {