equal
deleted
inserted
replaced
42 CVoIPUplinkThread::~CVoIPUplinkThread() |
42 CVoIPUplinkThread::~CVoIPUplinkThread() |
43 { |
43 { |
44 TRACE_PRN_FN_ENT; |
44 TRACE_PRN_FN_ENT; |
45 |
45 |
46 Stop(); |
46 Stop(); |
|
47 iBitrates.Close(); |
|
48 iShared.iCodecSettings.iArrBitrates = NULL; |
47 delete iSpeechEncoderConfig; |
49 delete iSpeechEncoderConfig; |
48 delete iG711EncoderIntfc; |
50 delete iG711EncoderIntfc; |
49 delete iG729EncoderIntfc; |
51 delete iG729EncoderIntfc; |
50 delete iIlbcEncoderIntfc; |
52 delete iIlbcEncoderIntfc; |
51 |
53 |
524 { |
526 { |
525 TInt err = KErrNotSupported; |
527 TInt err = KErrNotSupported; |
526 |
528 |
527 if (iSpeechEncoderConfig) |
529 if (iSpeechEncoderConfig) |
528 { |
530 { |
529 RArray<TUint> bitrates; |
531 iBitrates.Reset(); |
530 err = iSpeechEncoderConfig->GetSupportedBitrates(bitrates); |
532 err = iSpeechEncoderConfig->GetSupportedBitrates(iBitrates); |
531 iShared.iMutex.Wait(); |
533 iShared.iMutex.Wait(); |
532 iShared.iCodecSettings.iArrBitrates = bitrates; |
534 iShared.iCodecSettings.iArrBitrates = &iBitrates; |
533 iShared.iMutex.Signal(); |
535 iShared.iMutex.Signal(); |
534 } |
536 } |
535 |
537 |
536 SendCmd(ECmdGetSupportedBitratesComplete, err); |
538 SendCmd(ECmdGetSupportedBitratesComplete, err); |
537 TRACE_PRN_IF_ERR(err); |
539 TRACE_PRN_IF_ERR(err); |