| Index: media/filters/file_data_source.cc
|
| diff --git a/media/filters/file_data_source.cc b/media/filters/file_data_source.cc
|
| index 0ba38cc22ff32c09663c4ddbe1449dff0ee6e945..8491bfcd2f86d0edc2e7f9c781ff3af45bbe6d0c 100644
|
| --- a/media/filters/file_data_source.cc
|
| +++ b/media/filters/file_data_source.cc
|
| @@ -26,10 +26,6 @@ FileDataSource::FileDataSource(bool disable_file_size)
|
| disable_file_size_(disable_file_size) {
|
| }
|
|
|
| -FileDataSource::~FileDataSource() {
|
| - DCHECK(!file_);
|
| -}
|
| -
|
| PipelineStatus FileDataSource::Initialize(const std::string& url) {
|
| DCHECK(!file_);
|
| #if defined(OS_WIN)
|
| @@ -54,13 +50,6 @@ void FileDataSource::set_host(DataSourceHost* host) {
|
| UpdateHostBytes();
|
| }
|
|
|
| -void FileDataSource::UpdateHostBytes() {
|
| - if (host() && file_) {
|
| - host()->SetTotalBytes(file_size_);
|
| - host()->SetBufferedBytes(file_size_);
|
| - }
|
| -}
|
| -
|
| void FileDataSource::Stop(const base::Closure& callback) {
|
| base::AutoLock l(lock_);
|
| if (file_) {
|
| @@ -114,4 +103,15 @@ bool FileDataSource::IsStreaming() {
|
|
|
| void FileDataSource::SetBitrate(int bitrate) {}
|
|
|
| +FileDataSource::~FileDataSource() {
|
| + DCHECK(!file_);
|
| +}
|
| +
|
| +void FileDataSource::UpdateHostBytes() {
|
| + if (host() && file_) {
|
| + host()->SetTotalBytes(file_size_);
|
| + host()->SetBufferedBytes(file_size_);
|
| + }
|
| +}
|
| +
|
| } // namespace media
|
|
|