DescriptionRTPReceiverAudio: Removed frequency from CNGPayloadType and cleaned up
CheckPayloadChanged.
Removed last_received_frequency_, cng_payload_type_,
g722_payload_type_ and last_received_g722_ from RTPReceiverAudio and
cleaned up most of the related, now dead code.
Since g722_payload_type_ was never set, neither was
last_received_g722_, which means the frequency change in
CNGPayloadType was never done. Setting the frequency to the standard
values also proved unnecessary, since they were already set before the
call. Even if frequency would have been changed by RTPReceiverAudio, I
was not able to find a place where that would actually have
mattered. The ACM and NetEq, for example, which eventually gets these
packages, don't care about that value.
Also, GetPayloadTypeFrequency was never called, so keeping track of
last_received_frequency_ proved unnecessary.
cng_payload_type_ was stored to be able to check in CNGPayloadType if
cng_payload_type_has_changed. This flag was also never read, so these
all disappear.
The main reason for starting this change was to root out any G722
specific code we have sprinkled around the code base (specifically
dealing with the fact that for G722 clock rate != sample rate). In
this case, once I started pulling at one end of the string, the whole
thing came unraveled.
BUG=webrtc:5805
Committed: https://crrev.com/425a6ccac3c6c485048685566b259c540280cc2a
Cr-Commit-Position: refs/heads/master@{#14530}
Patch Set 1 #
Total comments: 12
Patch Set 2 : Addressed nits. #Patch Set 3 : Silly me! #Patch Set 4 : Rebase #
Depends on Patchset: Messages
Total messages: 19 (10 generated)
|