Only remove encoder state feedback for send channels.
BUG=1000 TEST=See bug Review URL: https://webrtc-codereview.appspot.com/938004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2994 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
1f8c02a4de
commit
8dde197788
@ -229,7 +229,11 @@ int ViEChannelManager::DeleteChannel(int channel_id) {
|
|||||||
group = FindGroup(channel_id);
|
group = FindGroup(channel_id);
|
||||||
group->SetChannelRembStatus(channel_id, false, false, vie_channel,
|
group->SetChannelRembStatus(channel_id, false, false, vie_channel,
|
||||||
vie_encoder);
|
vie_encoder);
|
||||||
group->GetEncoderStateFeedback()->RemoveEncoder(vie_encoder);
|
|
||||||
|
// Remove the feedback if we're owning the encoder.
|
||||||
|
if (vie_encoder->channel_id() == channel_id) {
|
||||||
|
group->GetEncoderStateFeedback()->RemoveEncoder(vie_encoder);
|
||||||
|
}
|
||||||
|
|
||||||
unsigned int remote_ssrc = 0;
|
unsigned int remote_ssrc = 0;
|
||||||
vie_channel->GetRemoteSSRC(&remote_ssrc);
|
vie_channel->GetRemoteSSRC(&remote_ssrc);
|
||||||
|
@ -152,6 +152,7 @@ class ViEEncoder
|
|||||||
// Disables recording of debugging information.
|
// Disables recording of debugging information.
|
||||||
virtual int StopDebugRecording();
|
virtual int StopDebugRecording();
|
||||||
|
|
||||||
|
int channel_id() const { return channel_id_; }
|
||||||
protected:
|
protected:
|
||||||
// Called by BitrateObserver.
|
// Called by BitrateObserver.
|
||||||
void OnNetworkChanged(const uint32_t bitrate_bps,
|
void OnNetworkChanged(const uint32_t bitrate_bps,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user