| Index: webrtc/call/call.cc
|
| diff --git a/webrtc/call/call.cc b/webrtc/call/call.cc
|
| index 1a78d8e261c367ab72f0f232db5a57313019aa30..6475e00abf204e3327cd2ce6503537951c97c6e8 100644
|
| --- a/webrtc/call/call.cc
|
| +++ b/webrtc/call/call.cc
|
| @@ -885,15 +885,10 @@ void Call::DestroyFlexfecReceiveStream(FlexfecReceiveStream* receive_stream) {
|
| RTC_DCHECK_RUN_ON(&configuration_thread_checker_);
|
|
|
| RTC_DCHECK(receive_stream != nullptr);
|
| - // There exist no other derived classes of FlexfecReceiveStream,
|
| - // so this downcast is safe.
|
| - FlexfecReceiveStreamImpl* receive_stream_impl =
|
| - static_cast<FlexfecReceiveStreamImpl*>(receive_stream);
|
| {
|
| WriteLockScoped write_lock(*receive_crit_);
|
|
|
| - const FlexfecReceiveStream::Config& config =
|
| - receive_stream_impl->GetConfig();
|
| + const FlexfecReceiveStream::Config& config = receive_stream->GetConfig();
|
| uint32_t ssrc = config.remote_ssrc;
|
| receive_rtp_config_.erase(ssrc);
|
|
|
| @@ -903,7 +898,7 @@ void Call::DestroyFlexfecReceiveStream(FlexfecReceiveStream* receive_stream) {
|
| ->RemoveStream(ssrc);
|
| }
|
|
|
| - delete receive_stream_impl;
|
| + delete receive_stream;
|
| }
|
|
|
| Call::Stats Call::GetStats() const {
|
|
|