diff -r 72290a6868df -r bf4e57f9a0ce multimediacommscontroller/mmccsubcontroller/src/mccsymdlstream.cpp --- a/multimediacommscontroller/mmccsubcontroller/src/mccsymdlstream.cpp Tue Jul 06 14:42:02 2010 +0300 +++ b/multimediacommscontroller/mmccsubcontroller/src/mccsymdlstream.cpp Wed Aug 18 10:09:50 2010 +0300 @@ -49,7 +49,8 @@ MAsyncEventHandler* aEventhandler, MMccResources* aMccResources, CMccRtpManager* aManager, - TInt aStreamType ) : + TInt aStreamType, + CMccRtpMediaClock& aClock ) : CMccSymStreamBase( aMccStreamId, aEventhandler, aMccResources, @@ -58,6 +59,7 @@ iJitterBuffer( NULL ), iFormatDecode( NULL ) { + iRtpMediaClock = &aClock; } // ----------------------------------------------------------------------------- @@ -70,14 +72,16 @@ MAsyncEventHandler* aEventhandler, MMccResources* aMccResources, CMccRtpManager* aManager, - TInt aStreamType ) + TInt aStreamType, + CMccRtpMediaClock& aClock ) { CMccSymDlStream* s = new ( ELeave ) CMccSymDlStream( aMccStreamId, aEventhandler, aMccResources, aManager, - aStreamType ); + aStreamType, + aClock ); CleanupStack::PushL( s ); s->ConstructL(); return s; @@ -261,6 +265,10 @@ else if ( CurrentCodecState() == EStateCodecLoaded || CurrentCodecState() == EStateCodecLoadedAndUpdating ) { + iJitterBuffer->SetupL( iCodecInfo.iMaxPtime, + iCodecInfo.iJitterBufThreshold, + iCodecInfo ); + // Update codec info if ( iDatasource->DataSourceType() == KMccRtpSourceUid ) { @@ -269,7 +277,7 @@ // For updating keep alive parameters TMccCodecInfoBuffer infoBuffer( iCodecInfo ); - dataSource->ConfigureL( infoBuffer ); + dataSource->ConfigureL( infoBuffer, iRtpMediaClock ); } SetCodecState( EStateCodecLoadedAndUpdating ); UpdateCodecInformationL( orig, iCodecInfo );