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

Unified Diff: webkit/media/filter_helpers.cc

Issue 11198017: Add DecryptingAudioDecoder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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
« media/filters/decrypting_audio_decoder.h ('K') | « media/media.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/filter_helpers.cc
diff --git a/webkit/media/filter_helpers.cc b/webkit/media/filter_helpers.cc
index d34cf52408cdd97e7af6042f22d78b8a59b9a724..b18a1bdec382c262cbde40064f61da050802c729 100644
--- a/webkit/media/filter_helpers.cc
+++ b/webkit/media/filter_helpers.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "media/base/filter_collection.h"
#include "media/base/message_loop_factory.h"
+#include "media/filters/decrypting_audio_decoder.h"
#include "media/filters/decrypting_video_decoder.h"
#include "media/filters/chunk_demuxer.h"
#include "media/filters/dummy_demuxer.h"
@@ -36,6 +37,17 @@ static void AddDefaultDecodersToCollection(
base::Unretained(message_loop_factory),
media::MessageLoopFactory::kDecoder));
+ scoped_refptr<media::DecryptingAudioDecoder> decrypting_audio_decoder =
+ new media::DecryptingAudioDecoder(
+ base::Bind(&media::MessageLoopFactory::GetMessageLoop,
+ base::Unretained(message_loop_factory),
+ media::MessageLoopFactory::kDecoder),
+ base::Bind(&ProxyDecryptor::RequestDecryptorNotification,
+ base::Unretained(proxy_decryptor)));
+
+ filter_collection->GetAudioDecoders()->push_back(ffmpeg_audio_decoder);
+ filter_collection->GetAudioDecoders()->push_back(decrypting_audio_decoder);
scherkus (not reviewing) 2012/10/19 02:12:58 here we have ffmpeg > decrypting for audio, but fo
xhwang 2012/10/19 02:19:45 Nothing happens by chance :) This is intentional.
scherkus (not reviewing) 2012/10/19 02:23:05 ...but FFVD doing decryption is temporary, right?
xhwang 2012/10/19 02:40:35 Yes. But if I move FFVD up now, then decrypt-and-d
scherkus (not reviewing) 2012/10/19 02:51:48 Sounds good to me -- can you TODOify it w/ a comme
xhwang 2012/10/19 07:28:28 Done.
+
scoped_refptr<media::DecryptingVideoDecoder> decrypting_video_decoder =
new media::DecryptingVideoDecoder(
base::Bind(&media::MessageLoopFactory::GetMessageLoop,
@@ -51,7 +63,6 @@ static void AddDefaultDecodersToCollection(
media::MessageLoopFactory::kDecoder),
proxy_decryptor);
- filter_collection->GetAudioDecoders()->push_back(ffmpeg_audio_decoder);
filter_collection->GetVideoDecoders()->push_back(decrypting_video_decoder);
filter_collection->GetVideoDecoders()->push_back(ffmpeg_video_decoder);
}
« media/filters/decrypting_audio_decoder.h ('K') | « media/media.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698