Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Unified Diff: media/filters/file_data_source.cc

Issue 7452016: Remove MediaFormat once and for all. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/filters/file_data_source.h ('k') | media/filters/null_audio_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/file_data_source.cc
diff --git a/media/filters/file_data_source.cc b/media/filters/file_data_source.cc
index da03e98e793b211eedf50198cdaf99c99fdd6991..04035dc590ad9657c0e3de7bb86b3636f67aeee1 100644
--- a/media/filters/file_data_source.cc
+++ b/media/filters/file_data_source.cc
@@ -37,8 +37,6 @@ PipelineStatus FileDataSource::Initialize(const std::string& url) {
file_size_ = 0;
return PIPELINE_ERROR_URL_NOT_FOUND;
}
- media_format_.SetAsString(MediaFormat::kURL, url);
-
if (host()) {
host()->SetTotalBytes(file_size_);
host()->SetBufferedBytes(file_size_);
@@ -68,10 +66,6 @@ void FileDataSource::Stop(FilterCallback* callback) {
}
}
-const MediaFormat& FileDataSource::media_format() {
- return media_format_;
-}
-
void FileDataSource::Read(int64 position, size_t size, uint8* data,
ReadCallback* read_callback) {
DCHECK(file_);
« no previous file with comments | « media/filters/file_data_source.h ('k') | media/filters/null_audio_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698