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

Unified Diff: webkit/media/filter_helpers.cc

Issue 10905236: Move ChunkDemuxer handling from WMPProxy to WMPI and remove ChunkDemuxerClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ffmpeg_regression_tests Created 8 years, 3 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
Index: webkit/media/filter_helpers.cc
diff --git a/webkit/media/filter_helpers.cc b/webkit/media/filter_helpers.cc
index 5975679ef8c4a7561fce3814e43619cacdd68be2..9740de48646627cd2d0ac04b0e2e58edb0d717d6 100644
--- a/webkit/media/filter_helpers.cc
+++ b/webkit/media/filter_helpers.cc
@@ -59,21 +59,15 @@ bool BuildMediaStreamCollection(const WebKit::WebURL& url,
return true;
}
-bool BuildMediaSourceCollection(
- const WebKit::WebURL& url,
- const WebKit::WebURL& media_source_url,
- media::ChunkDemuxerClient* client,
+void BuildMediaSourceCollection(
+ const scoped_refptr<media::ChunkDemuxer>& demuxer,
media::MessageLoopFactory* message_loop_factory,
media::FilterCollection* filter_collection,
media::Decryptor* decryptor) {
- if (media_source_url.isEmpty() || url != media_source_url)
- return false;
-
- filter_collection->SetDemuxer(new media::ChunkDemuxer(client));
-
+ DCHECK(demuxer);
+ filter_collection->SetDemuxer(demuxer);
AddDefaultDecodersToCollection(message_loop_factory, filter_collection,
decryptor);
- return true;
}
void BuildDefaultCollection(

Powered by Google App Engine
This is Rietveld 408576698