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

Unified Diff: media/base/pipeline_impl.cc

Issue 2643103002: [Video] Fix keyframe distance average calculations. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | media/base/pipeline_status.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/pipeline_impl.cc
diff --git a/media/base/pipeline_impl.cc b/media/base/pipeline_impl.cc
index 1794e44af90b0a03f0e308f4bf1e34bf77113a0a..ef8ac158a57c0837399ef7f2626e816135cd8e07 100644
--- a/media/base/pipeline_impl.cc
+++ b/media/base/pipeline_impl.cc
@@ -647,8 +647,11 @@ void PipelineImpl::RendererWrapper::OnStatisticsUpdate(
shared_state_.statistics.video_frames_dropped += stats.video_frames_dropped;
shared_state_.statistics.audio_memory_usage += stats.audio_memory_usage;
shared_state_.statistics.video_memory_usage += stats.video_memory_usage;
- shared_state_.statistics.video_keyframe_distance_average =
- stats.video_keyframe_distance_average;
+
+ if (stats.video_keyframe_distance_average != kNoTimestamp) {
+ shared_state_.statistics.video_keyframe_distance_average =
+ stats.video_keyframe_distance_average;
+ }
}
void PipelineImpl::RendererWrapper::OnBufferingStateChange(
« no previous file with comments | « no previous file | media/base/pipeline_status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698