summaryrefslogtreecommitdiffstats
path: root/media/player
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-26 17:26:44 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-26 17:26:44 +0000
commit9668838dea335d279409c621ede1730624acf7af (patch)
tree435adb270d282dce74e4d1e0bd7cb309ab9553a4 /media/player
parente457b150e965030f9a032ebc24292f2014631441 (diff)
downloadchromium_src-9668838dea335d279409c621ede1730624acf7af.zip
chromium_src-9668838dea335d279409c621ede1730624acf7af.tar.gz
chromium_src-9668838dea335d279409c621ede1730624acf7af.tar.bz2
Micro-refactor: added VideoRendererBase::OnStop().
Updated subclasses WtlRenderer and VideoRendererImpl as well. TEST=none BUG=none Review URL: http://codereview.chromium.org/147191 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19372 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/player')
-rw-r--r--media/player/wtl_renderer.cc3
-rw-r--r--media/player/wtl_renderer.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/media/player/wtl_renderer.cc b/media/player/wtl_renderer.cc
index 45b380b..f7d87fa 100644
--- a/media/player/wtl_renderer.cc
+++ b/media/player/wtl_renderer.cc
@@ -20,6 +20,9 @@ bool WtlVideoRenderer::IsMediaFormatSupported(
return ParseMediaFormat(media_format, &width, &height);
}
+void WtlVideoRenderer::OnStop() {
+}
+
bool WtlVideoRenderer::OnInitialize(media::VideoDecoder* decoder) {
int width = 0;
int height = 0;
diff --git a/media/player/wtl_renderer.h b/media/player/wtl_renderer.h
index eba1fc8..23f1b2a 100644
--- a/media/player/wtl_renderer.h
+++ b/media/player/wtl_renderer.h
@@ -18,7 +18,9 @@ class WtlVideoRenderer : public media::VideoRendererBase {
static bool IsMediaFormatSupported(const media::MediaFormat& media_format);
protected:
+ // VideoRendererBase implementation.
virtual bool OnInitialize(media::VideoDecoder* decoder);
+ virtual void OnStop();
virtual void OnFrameAvailable();
private: