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

Unified Diff: media/filters/audio_renderer_base.h

Issue 9295020: Fix ChunkDemuxer seek deadlock (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright year. Created 8 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 | « media/base/filters.h ('k') | media/filters/audio_renderer_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_renderer_base.h
diff --git a/media/filters/audio_renderer_base.h b/media/filters/audio_renderer_base.h
index f6218c74edc8b4fc6437e53a043c396a58d2e6f0..4326901b0670516380b6a627feee277a3464ec0e 100644
--- a/media/filters/audio_renderer_base.h
+++ b/media/filters/audio_renderer_base.h
@@ -113,6 +113,11 @@ class MEDIA_EXPORT AudioRendererBase : public AudioRenderer {
// Safe to call from any thread.
void ScheduleRead_Locked();
+ // Returns true if the data in the buffer is all before
+ // |seek_timestamp_|. This can only return true while
+ // in the kSeeking state.
+ bool IsBeforeSeekTime(const scoped_refptr<Buffer>& buffer);
+
// Audio decoder.
scoped_refptr<AudioDecoder> decoder_;
@@ -128,7 +133,6 @@ class MEDIA_EXPORT AudioRendererBase : public AudioRenderer {
kSeeking,
kPlaying,
kStopped,
- kError,
kUnderflow,
kRebuffering,
};
« no previous file with comments | « media/base/filters.h ('k') | media/filters/audio_renderer_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698