summaryrefslogtreecommitdiffstats
path: root/media/base/ranges.h
diff options
context:
space:
mode:
authorvrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-02 21:24:38 +0000
committervrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-02 21:24:38 +0000
commit29dcc87a4d431025a5c8a6a4b5498172804cc9f9 (patch)
tree628c31d4be98e8a26e6530a74d0f6ccceeb45976 /media/base/ranges.h
parenta9d31ef4508af244599ae096be8e33c6bfec029b (diff)
downloadchromium_src-29dcc87a4d431025a5c8a6a4b5498172804cc9f9.zip
chromium_src-29dcc87a4d431025a5c8a6a4b5498172804cc9f9.tar.gz
chromium_src-29dcc87a4d431025a5c8a6a4b5498172804cc9f9.tar.bz2
Cap sourceBuffered() on duration and truncate duration on EoS
Adds logic + test to truncate the duration on Media Source streams when EndOfStream is signalled. Also adds some logic to make sure buffered streams never exceed the reported duration. BUG=139899 Review URL: https://chromiumcodereview.appspot.com/10829108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149702 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/ranges.h')
-rw-r--r--media/base/ranges.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/base/ranges.h b/media/base/ranges.h
index 82bf7a0..f42b34a 100644
--- a/media/base/ranges.h
+++ b/media/base/ranges.h
@@ -39,7 +39,7 @@ class Ranges {
void clear();
// Computes the intersection between this range and |other|.
- Ranges<T> IntersectionWith(const Ranges<T>& other);
+ Ranges<T> IntersectionWith(const Ranges<T>& other) const;
private:
// Wrapper around DCHECK_LT allowing comparisons of operator<<'able T's.
@@ -133,7 +133,7 @@ void Ranges<T>::clear() {
}
template<class T>
-Ranges<T> Ranges<T>::IntersectionWith(const Ranges<T>& other) {
+Ranges<T> Ranges<T>::IntersectionWith(const Ranges<T>& other) const {
Ranges<T> result;
size_t i = 0;