Index: chromecast/media/cma/ipc_streamer/audio_decoder_config_marshaller.cc |
diff --git a/chromecast/media/cma/ipc_streamer/audio_decoder_config_marshaller.cc b/chromecast/media/cma/ipc_streamer/audio_decoder_config_marshaller.cc |
index 2798c6bab11caef36dce05ff771dcc0c1000a08a..031571a68df54ba4405221610d3c863ec8addd46 100644 |
--- a/chromecast/media/cma/ipc_streamer/audio_decoder_config_marshaller.cc |
+++ b/chromecast/media/cma/ipc_streamer/audio_decoder_config_marshaller.cc |
@@ -11,6 +11,7 @@ |
#include "base/logging.h" |
#include "chromecast/media/cma/ipc/media_message.h" |
+#include "chromecast/media/cma/ipc_streamer/encryption_scheme_marshaller.h" |
#include "media/base/audio_decoder_config.h" |
namespace chromecast { |
@@ -27,7 +28,7 @@ void AudioDecoderConfigMarshaller::Write( |
CHECK(msg->WritePod(config.channel_layout())); |
CHECK(msg->WritePod(config.samples_per_second())); |
CHECK(msg->WritePod(config.sample_format())); |
- CHECK(msg->WritePod(config.is_encrypted())); |
+ EncryptionSchemeMarshaller::Write(config.encryption_scheme(), msg); |
CHECK(msg->WritePod(config.extra_data().size())); |
if (!config.extra_data().empty()) |
CHECK(msg->WriteBuffer(&config.extra_data()[0], |
@@ -41,15 +42,15 @@ void AudioDecoderConfigMarshaller::Write( |
::media::SampleFormat sample_format; |
::media::ChannelLayout channel_layout; |
int samples_per_second; |
- bool is_encrypted; |
size_t extra_data_size; |
std::vector<uint8_t> extra_data; |
+ ::media::EncryptionScheme encryption_scheme; |
CHECK(msg->ReadPod(&codec)); |
CHECK(msg->ReadPod(&channel_layout)); |
CHECK(msg->ReadPod(&samples_per_second)); |
CHECK(msg->ReadPod(&sample_format)); |
- CHECK(msg->ReadPod(&is_encrypted)); |
+ encryption_scheme = EncryptionSchemeMarshaller::Read(msg); |
CHECK(msg->ReadPod(&extra_data_size)); |
CHECK_GE(codec, ::media::kUnknownAudioCodec); |
@@ -67,7 +68,7 @@ void AudioDecoderConfigMarshaller::Write( |
return ::media::AudioDecoderConfig( |
codec, sample_format, |
channel_layout, samples_per_second, |
- extra_data, is_encrypted); |
+ extra_data, encryption_scheme); |
} |
} // namespace media |