equal
deleted
inserted
replaced
47 CMccSymDlStream::CMccSymDlStream( |
47 CMccSymDlStream::CMccSymDlStream( |
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 TInt aStreamType, |
52 TInt aStreamType ) : |
53 CMccRtpMediaClock& aClock ) : |
|
54 CMccSymStreamBase( aMccStreamId, |
53 CMccSymStreamBase( aMccStreamId, |
55 aEventhandler, |
54 aEventhandler, |
56 aMccResources, |
55 aMccResources, |
57 aManager, |
56 aManager, |
58 aStreamType ), |
57 aStreamType ), |
59 iJitterBuffer( NULL ), |
58 iJitterBuffer( NULL ), |
60 iFormatDecode( NULL ) |
59 iFormatDecode( NULL ) |
61 { |
60 { |
62 iRtpMediaClock = &aClock; |
|
63 } |
61 } |
64 |
62 |
65 // ----------------------------------------------------------------------------- |
63 // ----------------------------------------------------------------------------- |
66 // CMccSymDlStream::NewL |
64 // CMccSymDlStream::NewL |
67 // Two-phased constructor. |
65 // Two-phased constructor. |
70 CMccSymDlStream* CMccSymDlStream::NewLC( |
68 CMccSymDlStream* CMccSymDlStream::NewLC( |
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 TInt aStreamType, |
73 TInt aStreamType ) |
76 CMccRtpMediaClock& aClock ) |
|
77 { |
74 { |
78 CMccSymDlStream* s = |
75 CMccSymDlStream* s = |
79 new ( ELeave ) CMccSymDlStream( aMccStreamId, |
76 new ( ELeave ) CMccSymDlStream( aMccStreamId, |
80 aEventhandler, |
77 aEventhandler, |
81 aMccResources, |
78 aMccResources, |
82 aManager, |
79 aManager, |
83 aStreamType, |
80 aStreamType ); |
84 aClock ); |
|
85 CleanupStack::PushL( s ); |
81 CleanupStack::PushL( s ); |
86 s->ConstructL(); |
82 s->ConstructL(); |
87 return s; |
83 return s; |
88 } |
84 } |
89 |
85 |
263 } |
259 } |
264 } |
260 } |
265 else if ( CurrentCodecState() == EStateCodecLoaded || |
261 else if ( CurrentCodecState() == EStateCodecLoaded || |
266 CurrentCodecState() == EStateCodecLoadedAndUpdating ) |
262 CurrentCodecState() == EStateCodecLoadedAndUpdating ) |
267 { |
263 { |
268 iJitterBuffer->SetupL( iCodecInfo.iMaxPtime, |
|
269 iCodecInfo.iJitterBufThreshold, |
|
270 iCodecInfo ); |
|
271 |
|
272 // Update codec info |
264 // Update codec info |
273 if ( iDatasource->DataSourceType() == KMccRtpSourceUid ) |
265 if ( iDatasource->DataSourceType() == KMccRtpSourceUid ) |
274 { |
266 { |
275 CMccRtpDataSource* dataSource = |
267 CMccRtpDataSource* dataSource = |
276 static_cast<CMccRtpDataSource*>( iDatasource ); |
268 static_cast<CMccRtpDataSource*>( iDatasource ); |
277 |
269 |
278 // For updating keep alive parameters |
270 // For updating keep alive parameters |
279 TMccCodecInfoBuffer infoBuffer( iCodecInfo ); |
271 TMccCodecInfoBuffer infoBuffer( iCodecInfo ); |
280 dataSource->ConfigureL( infoBuffer, iRtpMediaClock ); |
272 dataSource->ConfigureL( infoBuffer ); |
281 } |
273 } |
282 SetCodecState( EStateCodecLoadedAndUpdating ); |
274 SetCodecState( EStateCodecLoadedAndUpdating ); |
283 UpdateCodecInformationL( orig, iCodecInfo ); |
275 UpdateCodecInformationL( orig, iCodecInfo ); |
284 } |
276 } |
285 else |
277 else |