Index: content/renderer/media/webmediaplayer_impl.h |
diff --git a/content/renderer/media/webmediaplayer_impl.h b/content/renderer/media/webmediaplayer_impl.h |
index 7f765a82c036193401f1bbcf589d95804527cb24..b7a951899be58776b28106b1797eb86b9d6d82d1 100644 |
--- a/content/renderer/media/webmediaplayer_impl.h |
+++ b/content/renderer/media/webmediaplayer_impl.h |
@@ -174,6 +174,7 @@ class WebMediaPlayerImpl |
void OnPipelineSeek(media::PipelineStatus status); |
void OnPipelineEnded(); |
void OnPipelineError(media::PipelineStatus error); |
+ void OnPipelineHasTrack(media::Pipeline::TrackType track); |
void OnPipelineBufferingState( |
media::Pipeline::BufferingState buffering_state); |
void OnDemuxerOpened(); |
@@ -269,6 +270,10 @@ class WebMediaPlayerImpl |
// The LoadType passed in the |load_type| parameter of the load() call. |
LoadType load_type_; |
+ // Cache of available tracks for answering hasAudio() and hasVideo(). |
+ bool has_audio_; |
+ bool has_video_; |
+ |
// Playback state. |
// |
// TODO(scherkus): we have these because Pipeline favours the simplicity of a |