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

Unified Diff: webrtc/modules/video_coding/video_receiver.cc

Issue 2993793002: Request keyframes more frequently on stream start/decoding error. (Closed)
Patch Set: Created 3 years, 4 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
Index: webrtc/modules/video_coding/video_receiver.cc
diff --git a/webrtc/modules/video_coding/video_receiver.cc b/webrtc/modules/video_coding/video_receiver.cc
index 3d3e155dc3e1a6417cc5a255f5406603435a76a7..de6764f9b54e1cd23522f6d5837bf0242420dbad 100644
--- a/webrtc/modules/video_coding/video_receiver.cc
+++ b/webrtc/modules/video_coding/video_receiver.cc
@@ -320,24 +320,7 @@ int32_t VideoReceiver::Decode(const VCMEncodedFrame& frame) {
if (decoder == nullptr) {
return VCM_NO_CODEC_REGISTERED;
}
- // Decode a frame
- int32_t ret = decoder->Decode(frame, clock_->TimeInMilliseconds());
-
- // Check for failed decoding, run frame type request callback if needed.
- bool request_key_frame = false;
- if (ret < 0) {
- request_key_frame = true;
- }
-
- if (!frame.Complete() || frame.MissingFrame()) {
philipel 2017/08/07 11:43:34 I assume this if statement was used when we allowe
terelius 2017/08/07 12:00:05 I don't understand the purpose of this code. It wo
stefan-webrtc 2017/08/07 12:24:53 I wrote it I think. It's purpose is to request a k
- request_key_frame = true;
- ret = VCM_OK;
- }
- if (request_key_frame) {
- rtc::CritScope cs(&process_crit_);
- _scheduleKeyRequest = true;
stefan-webrtc 2017/08/07 12:24:53 Would be nice to get rid of this member eventually
philipel 2017/08/07 13:30:11 Yes, it was still used by other parts of this clas
- }
- return ret;
+ return decoder->Decode(frame, clock_->TimeInMilliseconds());
}
// Register possible receive codecs, can be called multiple times

Powered by Google App Engine
This is Rietveld 408576698