Index: webrtc/modules/video_coding/main/source/jitter_buffer.h |
diff --git a/webrtc/modules/video_coding/main/source/jitter_buffer.h b/webrtc/modules/video_coding/main/source/jitter_buffer.h |
index 3961dff46ffaffb2d15fbb568fc311f6a46814cc..4bce1da3769ed38e698c5e2ddcc931473417f660 100644 |
--- a/webrtc/modules/video_coding/main/source/jitter_buffer.h |
+++ b/webrtc/modules/video_coding/main/source/jitter_buffer.h |
@@ -210,10 +210,19 @@ class VCMJitterBuffer { |
bool IsContinuousInState(const VCMFrameBuffer& frame, |
const VCMDecodingState& decoding_state) const |
EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); |
+ // Returns true if |frame| is continuous in |decoding_state|, not taking |
+ // decodable frames into account and ignoring the |decode_error_mode|. |
+ bool IsContinuousInStateForDecoding( |
+ const VCMFrameBuffer& frame, const VCMDecodingState& decoding_state) const |
+ EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); |
// Returns true if |frame| is continuous in the |last_decoded_state_|, taking |
// all decodable frames into account. |
bool IsContinuous(const VCMFrameBuffer& frame) const |
EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); |
+ // Returns true if |frame| is continuous in the |last_decoded_state_|, taking |
+ // all decodable frames into account and ignoring the |decode_error_mode|. |
+ bool IsContinuousForDecoding(const VCMFrameBuffer& frame) const |
+ EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); |
// Looks for frames in |incomplete_frames_| which are continuous in the |
// provided |decoded_state|. Starts the search from the timestamp of |
// |decoded_state|. |
@@ -332,6 +341,8 @@ class VCMJitterBuffer { |
int num_duplicated_packets_ GUARDED_BY(crit_sect_); |
// Number of packets discarded by the jitter buffer. |
int num_discarded_packets_ GUARDED_BY(crit_sect_); |
+ // Time when last decodable frame was received. |
+ int64_t time_last_decodable_frame_ GUARDED_BY(crit_sect_); |
// Time when first packet is received. |
int64_t time_first_packet_ms_ GUARDED_BY(crit_sect_); |