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

Unified Diff: chromecast/media/cma/pipeline/media_pipeline_impl.h

Issue 2032813002: [Chromecast] Log playback stall event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialize last_media_time_ Created 4 years, 6 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: chromecast/media/cma/pipeline/media_pipeline_impl.h
diff --git a/chromecast/media/cma/pipeline/media_pipeline_impl.h b/chromecast/media/cma/pipeline/media_pipeline_impl.h
index 753c5ef31f2ea521b01ccfc12ad77003f459c62e..872181f6fe2bcd13028d7baa647eaae97495b7d6 100644
--- a/chromecast/media/cma/pipeline/media_pipeline_impl.h
+++ b/chromecast/media/cma/pipeline/media_pipeline_impl.h
@@ -74,6 +74,9 @@ class MediaPipelineImpl {
BACKEND_STATE_PAUSED
};
struct FlushTask;
+ void CheckForPlaybackStall(base::TimeDelta media_time,
+ base::TimeTicks current_stc);
+
void OnFlushDone(bool is_audio_stream);
// Invoked to notify about a change of buffering state.
@@ -116,6 +119,11 @@ class MediaPipelineImpl {
int audio_bytes_for_bitrate_estimation_;
int video_bytes_for_bitrate_estimation_;
+ // Playback stalled handling.
+ bool playback_stalled_;
+ base::TimeTicks playback_stalled_time_;
+ bool playback_stalled_notification_sent_;
+
base::WeakPtr<MediaPipelineImpl> weak_this_;
base::WeakPtrFactory<MediaPipelineImpl> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698