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

Unified Diff: services/media/audio/audio_pipe.h

Issue 1836953002: Motown: Delay audio track completion of Prime requests until a packet arrives. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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 | services/media/audio/audio_pipe.cc » ('j') | services/media/audio/audio_pipe.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/audio/audio_pipe.h
diff --git a/services/media/audio/audio_pipe.h b/services/media/audio/audio_pipe.h
index 4a2b4fb9f4c4bfbd60e01ccc65d6ad4fadb252f8..d1fd7e2eb302380fcea47a8d35dfb59144e30e3e 100644
--- a/services/media/audio/audio_pipe.h
+++ b/services/media/audio/audio_pipe.h
@@ -81,6 +81,7 @@ class AudioPipe : public MediaPipeBase {
protected:
void OnPacketReceived(MediaPacketStatePtr state) override;
+ void OnPrimeRequested(const PrimeCallback& cbk) override;
bool OnFlushRequested(const FlushCallback& cbk) override;
private:
@@ -90,6 +91,8 @@ class AudioPipe : public MediaPipeBase {
// State used for timestamp interpolation
bool next_pts_known_ = 0;
int64_t next_pts_;
+
+ PrimeCallback prime_callback_;
};
} // namespace audio
« no previous file with comments | « no previous file | services/media/audio/audio_pipe.cc » ('j') | services/media/audio/audio_pipe.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698