Removed SSRC knowledge from ViEEncoder.
SSRC knowledge is contained withing VideoSendStream. That also means that debug recording is moved to VideoSendStream. I think that make sence since that allows debug recording with external encoder implementations one day. BUG=webrtc:5687 Review-Url: https://codereview.webrtc.org/1936503002 Cr-Commit-Position: refs/heads/master@{#12632}
This commit is contained in:
@ -335,11 +335,10 @@ int32_t VideoSender::AddVideoFrame(const VideoFrame& videoFrame,
|
||||
return VCM_OK;
|
||||
}
|
||||
|
||||
int32_t VideoSender::IntraFrameRequest(int stream_index) {
|
||||
int32_t VideoSender::IntraFrameRequest(size_t stream_index) {
|
||||
{
|
||||
rtc::CritScope lock(¶ms_crit_);
|
||||
if (stream_index < 0 ||
|
||||
static_cast<size_t>(stream_index) >= next_frame_types_.size()) {
|
||||
if (stream_index >= next_frame_types_.size()) {
|
||||
return -1;
|
||||
}
|
||||
next_frame_types_[stream_index] = kVideoFrameKey;
|
||||
@ -353,7 +352,7 @@ int32_t VideoSender::IntraFrameRequest(int stream_index) {
|
||||
// encoder_crit_.
|
||||
rtc::CritScope lock(&encoder_crit_);
|
||||
rtc::CritScope params_lock(¶ms_crit_);
|
||||
if (static_cast<size_t>(stream_index) >= next_frame_types_.size())
|
||||
if (stream_index >= next_frame_types_.size())
|
||||
return -1;
|
||||
if (_encoder != nullptr && _encoder->InternalSource()) {
|
||||
// Try to request the frame if we have an external encoder with
|
||||
|
||||
Reference in New Issue
Block a user