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

Unified Diff: media/base/filters.h

Issue 159476: Merge 21611 - Implemented proper pausethenseek behaviour for the media pipeli... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: 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
===================================================================
--- media/base/filters.h (revision 21798)
+++ media/base/filters.h (working copy)
@@ -88,6 +88,25 @@
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;
Property changes on: media\base\filters.h
___________________________________________________________________
Modified: svn:mergeinfo
Merged /trunk/src/media/base/filters.h:r21611
« 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