OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <limits> | 5 #include <limits> |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "media/base/filter_host.h" | 10 #include "media/base/filter_host.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 void FileDataSource::SetBitrate(int bitrate) {} | 104 void FileDataSource::SetBitrate(int bitrate) {} |
105 | 105 |
106 FileDataSource::~FileDataSource() { | 106 FileDataSource::~FileDataSource() { |
107 DCHECK(!file_); | 107 DCHECK(!file_); |
108 } | 108 } |
109 | 109 |
110 void FileDataSource::UpdateHostBytes() { | 110 void FileDataSource::UpdateHostBytes() { |
111 if (host() && file_) { | 111 if (host() && file_) { |
112 host()->SetTotalBytes(file_size_); | 112 host()->SetTotalBytes(file_size_); |
113 host()->SetBufferedBytes(file_size_); | 113 host()->AddBufferedByteRange(0, file_size_); |
114 } | 114 } |
115 } | 115 } |
116 | 116 |
117 } // namespace media | 117 } // namespace media |
OLD | NEW |