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

Unified Diff: media/cdm/ppapi/clear_key_cdm.cc

Issue 26956002: Plumb support for audio sample formats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix cast. Created 7 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
« no previous file with comments | « media/cdm/ppapi/clear_key_cdm.h ('k') | media/cdm/ppapi/ffmpeg_cdm_audio_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/ppapi/clear_key_cdm.cc
diff --git a/media/cdm/ppapi/clear_key_cdm.cc b/media/cdm/ppapi/clear_key_cdm.cc
index d73250010491a0b629d6b9f85aa5b5052af57fb7..071b2b35e31b1a447ff63c0b6e9c9f2fa900eb07 100644
--- a/media/cdm/ppapi/clear_key_cdm.cc
+++ b/media/cdm/ppapi/clear_key_cdm.cc
@@ -136,11 +136,11 @@ void* CreateCdmInstance(
return NULL;
}
- if (cdm_interface_version != cdm::ContentDecryptionModule_1::kVersion)
+ if (cdm_interface_version != cdm::ContentDecryptionModule_2::kVersion)
return NULL;
cdm::Host* host = static_cast<cdm::Host*>(
- get_cdm_host_func(cdm::ContentDecryptionModule_1::kVersion, user_data));
+ get_cdm_host_func(cdm::ContentDecryptionModule_2::kVersion, user_data));
if (!host)
return NULL;
@@ -417,7 +417,7 @@ cdm::Status ClearKeyCdm::DecryptAndDecodeFrame(
cdm::Status ClearKeyCdm::DecryptAndDecodeSamples(
const cdm::InputBuffer& encrypted_buffer,
- cdm::AudioFrames_1* audio_frames) {
+ cdm::AudioFrames* audio_frames) {
DVLOG(1) << "DecryptAndDecodeSamples()";
scoped_refptr<media::DecoderBuffer> buffer;
@@ -500,6 +500,16 @@ cdm::Status ClearKeyCdm::DecryptToMediaDecoderBuffer(
return cdm::kSuccess;
}
+void ClearKeyCdm::OnPlatformChallengeResponse(
+ const cdm::PlatformChallengeResponse& response) {
+ NOTIMPLEMENTED();
+}
+
+void ClearKeyCdm::OnQueryOutputProtectionStatus(
+ uint32_t link_mask, uint32_t output_protection_mask) {
+ NOTIMPLEMENTED();
+};
+
#if defined(CLEAR_KEY_CDM_USE_FAKE_AUDIO_DECODER)
int64 ClearKeyCdm::CurrentTimeStampInMicroseconds() const {
return output_timestamp_base_in_microseconds_ +
« no previous file with comments | « media/cdm/ppapi/clear_key_cdm.h ('k') | media/cdm/ppapi/ffmpeg_cdm_audio_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698