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

Unified Diff: media/base/filters.h

Issue 160005: Implemented proper pause-then-seek behaviour for the media pipeline. (Closed)
Patch Set: yay Created 11 years, 5 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 | media/base/pipeline.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/filters.h
diff --git a/media/base/filters.h b/media/base/filters.h
index 3029cbcf93ad5aa3f759e6f6c1ecad22447291ff..8fdfe011aad6413722c51104aa745c9c3c3c184e 100644
--- a/media/base/filters.h
+++ b/media/base/filters.h
@@ -88,6 +88,25 @@ class MediaFilter : public base::RefCountedThreadSafe<MediaFilter> {
return message_loop_;
}
+ // The pipeline has resumed playback. Filters can continue requesting reads.
+ // Filters may implement this method if they need to respond to this call.
+ virtual void Play(FilterCallback* callback) {
+ if (callback) {
+ callback->Run();
+ delete callback;
+ }
+ }
+
+ // The pipeline has paused playback. Filters should fulfill any existing read
+ // requests and then idle. Filters may implement this method if they need to
+ // respond to this call.
+ virtual void Pause(FilterCallback* callback) {
+ if (callback) {
+ callback->Run();
+ delete callback;
+ }
+ }
+
// The pipeline is being stopped either as a result of an error or because
// the client called Stop().
virtual void Stop() = 0;
« no previous file with comments | « no previous file | media/base/pipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698