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