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

Unified Diff: chromecast/media/cma/ipc_streamer/audio_decoder_config_marshaller.cc

Issue 1786733004: Revert of media config: expand is_encrypted to a struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: 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 031571a68df54ba4405221610d3c863ec8addd46..2798c6bab11caef36dce05ff771dcc0c1000a08a 100644
--- a/chromecast/media/cma/ipc_streamer/audio_decoder_config_marshaller.cc
+++ b/chromecast/media/cma/ipc_streamer/audio_decoder_config_marshaller.cc
@@ -11,7 +11,6 @@
#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 {
@@ -28,7 +27,7 @@
CHECK(msg->WritePod(config.channel_layout()));
CHECK(msg->WritePod(config.samples_per_second()));
CHECK(msg->WritePod(config.sample_format()));
- EncryptionSchemeMarshaller::Write(config.encryption_scheme(), msg);
+ CHECK(msg->WritePod(config.is_encrypted()));
CHECK(msg->WritePod(config.extra_data().size()));
if (!config.extra_data().empty())
CHECK(msg->WriteBuffer(&config.extra_data()[0],
@@ -42,15 +41,15 @@
::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));
- encryption_scheme = EncryptionSchemeMarshaller::Read(msg);
+ CHECK(msg->ReadPod(&is_encrypted));
CHECK(msg->ReadPod(&extra_data_size));
CHECK_GE(codec, ::media::kUnknownAudioCodec);
@@ -68,7 +67,7 @@
return ::media::AudioDecoderConfig(
codec, sample_format,
channel_layout, samples_per_second,
- extra_data, encryption_scheme);
+ extra_data, is_encrypted);
}
} // namespace media
« no previous file with comments | « chromecast/media/cma/ipc_streamer/BUILD.gn ('k') | chromecast/media/cma/ipc_streamer/encryption_scheme_marshaller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698