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

Unified Diff: webrtc/voice_engine/voe_base_impl.cc

Issue 2453243003: Remove voe::Channel::StopReceive() and associated logic. (Closed)
Patch Set: comment Created 4 years, 2 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 | « webrtc/voice_engine/voe_base_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/voe_base_impl.cc
diff --git a/webrtc/voice_engine/voe_base_impl.cc b/webrtc/voice_engine/voe_base_impl.cc
index f74bdb1dbc106ad8c1e0a2f62523a51df51deab1..bac9dcadbf36bea74539447c1f4bc794aa917000 100644
--- a/webrtc/voice_engine/voe_base_impl.cc
+++ b/webrtc/voice_engine/voe_base_impl.cc
@@ -436,23 +436,8 @@ int VoEBaseImpl::StartReceive(int channel) {
"StartReceive() failed to locate channel");
return -1;
}
- return channelPtr->StartReceiving();
-}
-
-int VoEBaseImpl::StopReceive(int channel) {
- rtc::CritScope cs(shared_->crit_sec());
- if (!shared_->statistics().Initialized()) {
- shared_->SetLastError(VE_NOT_INITED, kTraceError);
- return -1;
- }
- voe::ChannelOwner ch = shared_->channel_manager().GetChannel(channel);
- voe::Channel* channelPtr = ch.channel();
- if (channelPtr == nullptr) {
- shared_->SetLastError(VE_CHANNEL_NOT_VALID, kTraceError,
- "SetLocalReceiver() failed to locate channel");
- return -1;
- }
- return channelPtr->StopReceiving();
+ channelPtr->ResetDiscardedPacketCount();
+ return 0;
}
int VoEBaseImpl::StartPlayout(int channel) {
« no previous file with comments | « webrtc/voice_engine/voe_base_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698