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

Unified Diff: media/base/audio_decoder_config.h

Issue 2701203003: media: Prefer decrypting pipeline when CDM is attached (Closed)
Patch Set: comments addressed Created 3 years, 10 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 | « content/browser/media/encrypted_media_browsertest.cc ('k') | media/base/audio_decoder_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_decoder_config.h
diff --git a/media/base/audio_decoder_config.h b/media/base/audio_decoder_config.h
index 266de82d605277543a3fec40b2c5a8faec165266..675eb87232ceb5cd722550e7fe02fb50b30ca068 100644
--- a/media/base/audio_decoder_config.h
+++ b/media/base/audio_decoder_config.h
@@ -87,6 +87,12 @@ class MEDIA_EXPORT AudioDecoderConfig {
return encryption_scheme_;
}
+ // Sets the config to be encrypted or not encrypted manually. This can be
+ // useful for decryptors that decrypts an encrypted stream to a clear stream,
+ // or for decoder selectors that wants to select decrypting decoders instead
+ // of clear decoders.
+ void SetIsEncrypted(bool is_encrypted);
+
private:
AudioCodec codec_;
SampleFormat sample_format_;
« no previous file with comments | « content/browser/media/encrypted_media_browsertest.cc ('k') | media/base/audio_decoder_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698