Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: webrtc/call/call.cc

Issue 2967913002: Get rid of unnecessary cast of FlexfecReceiveStreamImpl to FlexfecReceiveStream (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/call/flexfec_receive_stream.h » ('j') | webrtc/call/flexfec_receive_stream_impl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/call/call.cc
diff --git a/webrtc/call/call.cc b/webrtc/call/call.cc
index 5c6f427e3b9b0468d1a03747c981bca89c53ea4f..27552b5d5788bf7608cbdb2a6e8ab82451fe8c98 100644
--- a/webrtc/call/call.cc
+++ b/webrtc/call/call.cc
@@ -862,15 +862,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);
@@ -880,7 +875,7 @@ void Call::DestroyFlexfecReceiveStream(FlexfecReceiveStream* receive_stream) {
->RemoveStream(ssrc);
}
- delete receive_stream_impl;
+ delete receive_stream;
}
Call::Stats Call::GetStats() const {
« no previous file with comments | « no previous file | webrtc/call/flexfec_receive_stream.h » ('j') | webrtc/call/flexfec_receive_stream_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698