multimediacommscontroller/mmccsubcontroller/src/mccsymdlstream.cpp
branchRCL_3
changeset 42 817c922b90eb
parent 0 1bce908db942
child 59 b0e4b01681c5
--- a/multimediacommscontroller/mmccsubcontroller/src/mccsymdlstream.cpp	Thu Jul 15 19:04:32 2010 +0300
+++ b/multimediacommscontroller/mmccsubcontroller/src/mccsymdlstream.cpp	Thu Aug 19 10:18:22 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 );