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

Unified Diff: webkit/renderer/media/android/media_source_delegate.h

Issue 17449020: Call NotifyDemuxerReady() only once while keys are added. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolved Min's comment and rebased Created 7 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
« no previous file with comments | « no previous file | webkit/renderer/media/android/media_source_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/renderer/media/android/media_source_delegate.h
diff --git a/webkit/renderer/media/android/media_source_delegate.h b/webkit/renderer/media/android/media_source_delegate.h
index dfe717f6dc145c99e15448b0e698aeda35d3e986..cc71521c6dac0a579815b8b1128ffa8e91749e9a 100644
--- a/webkit/renderer/media/android/media_source_delegate.h
+++ b/webkit/renderer/media/android/media_source_delegate.h
@@ -72,7 +72,7 @@ class MediaSourceDelegate : public media::DemuxerHost {
void CancelPendingSeek();
- void NotifyDemuxerReady(const std::string& key_system);
+ void NotifyKeyAdded(const std::string& key_system);
// Called when DemuxerStreamPlayer needs to read data from ChunkDemuxer.
// If it's the first request after the seek, |seek_done| will be true.
@@ -107,6 +107,8 @@ class MediaSourceDelegate : public media::DemuxerHost {
scoped_ptr<media::TextTrack> OnAddTextTrack(media::TextKind kind,
const std::string& label,
const std::string& language);
+ void NotifyDemuxerReady(const std::string& key_system);
+ bool CanNotifyDemuxerReady();
// Reads an access unit from the demuxer stream |stream| and stores it in
// the |index|th access unit in |params|.
@@ -156,6 +158,7 @@ class MediaSourceDelegate : public media::DemuxerHost {
scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> video_params_;
bool seeking_;
+ bool key_added_;
size_t access_unit_size_;
DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate);
« no previous file with comments | « no previous file | webkit/renderer/media/android/media_source_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698