diff options
author | xhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-25 04:36:51 +0000 |
---|---|---|
committer | xhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-25 04:36:51 +0000 |
commit | ddaaf850992ef0aad89b36f717fc964bf6628831 (patch) | |
tree | 9823079636ef8d8281ba872ca1ae92cc80436a77 /media/base | |
parent | 6affe2cbd65afa59872ab163b1b77e143140d5bb (diff) | |
download | chromium_src-ddaaf850992ef0aad89b36f717fc964bf6628831.zip chromium_src-ddaaf850992ef0aad89b36f717fc964bf6628831.tar.gz chromium_src-ddaaf850992ef0aad89b36f717fc964bf6628831.tar.bz2 |
Make DataSource::Stop() synchronous.
In a lot of filters in media code, Stop() has been folded into the dtor.
This model doesn't apply directly to DataSource because DataSource::Stop()
is called by the FFmpegDemuxer, but the DataSource is owned by
WebMediaPlayerImpl.
TBR=gbillock@chromium.org
BUG=349211
TEST=All existing tests pass.
Review URL: https://codereview.chromium.org/413243002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285479 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base')
-rw-r--r-- | media/base/data_source.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/base/data_source.h b/media/base/data_source.h index dca1dd3..e0b7373 100644 --- a/media/base/data_source.h +++ b/media/base/data_source.h @@ -28,7 +28,7 @@ class MEDIA_EXPORT DataSource { // Stops the DataSource. Once this is called all future Read() calls will // return an error. - virtual void Stop(const base::Closure& callback) = 0; + virtual void Stop() = 0; // Returns true and the file size, false if the file size could not be // retrieved. |