multimediacommscontroller/mmccsubcontroller/src/mccsymsimpledlstream.cpp
branchRCL_3
changeset 42 817c922b90eb
parent 0 1bce908db942
child 49 64c62431ac08
child 59 b0e4b01681c5
equal deleted inserted replaced
41:b9d283c5c7b5 42:817c922b90eb
    48     TUint32 aMccStreamId, 
    48     TUint32 aMccStreamId, 
    49     MAsyncEventHandler* aEventhandler, 
    49     MAsyncEventHandler* aEventhandler, 
    50     MMccResources* aMccResources,
    50     MMccResources* aMccResources,
    51     CMccRtpManager* aManager, 
    51     CMccRtpManager* aManager, 
    52     TFourCC aFourCC,
    52     TFourCC aFourCC,
    53     TInt aStreamType ) : 
    53     TInt aStreamType,
       
    54     CMccRtpMediaClock& aClock ) : 
    54     CMccSymStreamBase( aMccStreamId, 
    55     CMccSymStreamBase( aMccStreamId, 
    55                        aEventhandler, 
    56                        aEventhandler, 
    56                        aMccResources, 
    57                        aMccResources, 
    57                        aManager, 
    58                        aManager, 
    58                        aStreamType )
    59                        aStreamType )
    59     {
    60     {
    60     iFourCC = aFourCC;
    61     iFourCC = aFourCC;
       
    62     iRtpMediaClock = &aClock;
    61     }
    63     }
    62 
    64 
    63 // -----------------------------------------------------------------------------
    65 // -----------------------------------------------------------------------------
    64 // CMccSymSimpleDlStream::NewL
    66 // CMccSymSimpleDlStream::NewL
    65 // Two-phased constructor.
    67 // Two-phased constructor.
    69     TUint32 aMccStreamId, 
    71     TUint32 aMccStreamId, 
    70     MAsyncEventHandler* aEventhandler, 
    72     MAsyncEventHandler* aEventhandler, 
    71     MMccResources* aMccResources,
    73     MMccResources* aMccResources,
    72     CMccRtpManager* aManager, 
    74     CMccRtpManager* aManager, 
    73     TFourCC aFourCC,
    75     TFourCC aFourCC,
    74     TInt aStreamType ) 
    76     TInt aStreamType,
       
    77     CMccRtpMediaClock& aClock ) 
    75     {
    78     {
    76     CMccSymSimpleDlStream* s = 
    79     CMccSymSimpleDlStream* s = 
    77             new ( ELeave ) CMccSymSimpleDlStream( aMccStreamId, 
    80             new ( ELeave ) CMccSymSimpleDlStream( aMccStreamId, 
    78                                                   aEventhandler,
    81                                                   aEventhandler,
    79                                                   aMccResources, 
    82                                                   aMccResources, 
    80                                                   aManager, 
    83                                                   aManager, 
    81                                                   aFourCC, 
    84                                                   aFourCC, 
    82                                                   aStreamType );
    85                                                   aStreamType,
       
    86                                                   aClock );
    83     CleanupStack::PushL( s );
    87     CleanupStack::PushL( s );
    84     s->ConstructL();
    88     s->ConstructL();
    85 
    89 
    86     return s;
    90     return s;
    87     }
    91     }
   232             CMccRtpDataSource* dataSource = 
   236             CMccRtpDataSource* dataSource = 
   233                 static_cast<CMccRtpDataSource*>( iDatasource );
   237                 static_cast<CMccRtpDataSource*>( iDatasource );
   234             
   238             
   235             // For updating keep alive parameters
   239             // For updating keep alive parameters
   236             TMccCodecInfoBuffer infoBuffer( iCodecInfo );     
   240             TMccCodecInfoBuffer infoBuffer( iCodecInfo );     
   237             dataSource->ConfigureL( infoBuffer );
   241             dataSource->ConfigureL( infoBuffer, iRtpMediaClock );
   238        	    }
   242        	    }
   239         SetCodecState( EStateCodecLoadedAndUpdating );
   243         SetCodecState( EStateCodecLoadedAndUpdating );
   240     	UpdateCodecInformationL( iCodecInfo );
   244     	UpdateCodecInformationL( iCodecInfo );
   241         }
   245         }
   242     else
   246     else