Chromium Code Reviews

Unified Diff: media/base/filters.cc

Issue 8686010: <video> decode in hardware! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing OVERRIDEs Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: media/base/filters.cc
diff --git a/media/base/filters.cc b/media/base/filters.cc
index 877f3913216872a9c08f1ff21987806cbcf4ea3b..ace7d4ec613ae1bf92d8a0bb7bd8e5939244c847 100644
--- a/media/base/filters.cc
+++ b/media/base/filters.cc
@@ -29,6 +29,11 @@ Filter::Filter() : host_(NULL) {}
Filter::~Filter() {}
+void Filter::clear_host() {
+ DCHECK(host_);
+ host_ = NULL;
+}
+
void Filter::set_host(FilterHost* host) {
DCHECK(host);
DCHECK(!host_);

Powered by Google App Engine