Changing non-const reference arguments to pointers, ACM
Part of refactoring of ACM, and recent lint-warnings. This CL changes non-const references in the ACM API to pointers. BUG=issue1372 Committed: https://code.google.com/p/webrtc/source/detail?r=3543 Review URL: https://webrtc-codereview.appspot.com/1103012 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3555 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -138,7 +138,7 @@ ChooseCodec(
|
||||
}
|
||||
} while(outOfRange);
|
||||
|
||||
CHECK_ERROR(AudioCodingModule::Codec((WebRtc_UWord8)codecID, codecInst));
|
||||
CHECK_ERROR(AudioCodingModule::Codec((WebRtc_UWord8)codecID, &codecInst));
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -151,7 +151,7 @@ PrintCodecs()
|
||||
printf("No Name [Hz] [bps]\n");
|
||||
for(WebRtc_UWord8 codecCntr = 0; codecCntr < noCodec; codecCntr++)
|
||||
{
|
||||
AudioCodingModule::Codec(codecCntr, codecInst);
|
||||
AudioCodingModule::Codec(codecCntr, &codecInst);
|
||||
printf("%2d- %-18s %5d %6d\n",
|
||||
codecCntr, codecInst.plname, codecInst.plfreq, codecInst.rate);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user