diff -r 71c436fe3ce0 -r 4376525cdefb javauis/mmapi_akn/audiostreaming/src.mmf/cmmaaudiostreamplayer.cpp --- a/javauis/mmapi_akn/audiostreaming/src.mmf/cmmaaudiostreamplayer.cpp Wed Jun 09 09:34:07 2010 +0300 +++ b/javauis/mmapi_akn/audiostreaming/src.mmf/cmmaaudiostreamplayer.cpp Mon Jun 21 15:32:50 2010 +0300 @@ -144,18 +144,20 @@ iStreamHandler->PrepareL(); } -void CMMAAudioStreamPlayer::StartL() +void CMMAAudioStreamPlayer::StartL(TBool aPostEvent) { // If the player is in Prefetched state then it is implied that it has read "KMMAStreamRequestBufferSize" // and it can be played if (iState == EPrefetched) { - TInt64 time; - GetMediaTime(&time); - - // inform java side - PostLongEvent(CMMAPlayerEvent::EStarted, time); + if (aPostEvent) + { + TInt64 time; + GetMediaTime(&time); + // inform java side + PostLongEvent(CMMAPlayerEvent::EStarted, time); + } // go to started state ChangeState(EStarted); @@ -213,7 +215,7 @@ if (iRepeatForever || iRepeatCount < iRepeatNumberOfTimes) { - StartL(); + StartL(ETrue); } else {