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

Unified Diff: media/formats/webm/webm_audio_client.cc

Issue 1490613005: media config: expand is_encrypted to a struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ddorwin comments Created 4 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
Index: media/formats/webm/webm_audio_client.cc
diff --git a/media/formats/webm/webm_audio_client.cc b/media/formats/webm/webm_audio_client.cc
index fb6a723a4d2a3f65fe48a73f85a1127aac05edbb..98f299a4b49dbad1503dbfdda0459c1a8e26b5d6 100644
--- a/media/formats/webm/webm_audio_client.cc
+++ b/media/formats/webm/webm_audio_client.cc
@@ -6,6 +6,7 @@
#include "media/base/audio_decoder_config.h"
#include "media/base/channel_layout.h"
+#include "media/base/encryption_scheme.h"
ddorwin 2016/03/02 23:24:05 This is no longer necessary since we're just passi
dougsteed 2016/03/03 04:45:00 Done.
#include "media/formats/webm/webm_constants.h"
namespace media {
@@ -29,7 +30,7 @@ bool WebMAudioClient::InitializeConfig(
const std::vector<uint8_t>& codec_private,
int64_t seek_preroll,
int64_t codec_delay,
- bool is_encrypted,
+ const EncryptionScheme& encryption_scheme,
AudioDecoderConfig* config) {
DCHECK(config);
SampleFormat sample_format = kSampleFormatPlanarF32;
@@ -78,16 +79,11 @@ bool WebMAudioClient::InitializeConfig(
base::Time::kNanosecondsPerSecond);
}
- config->Initialize(
- audio_codec,
- sample_format,
- channel_layout,
- samples_per_second,
- codec_private,
- is_encrypted,
- base::TimeDelta::FromMicroseconds(
- (seek_preroll != -1 ? seek_preroll : 0) / 1000),
- codec_delay_in_frames);
+ config->Initialize(audio_codec, sample_format, channel_layout,
+ samples_per_second, codec_private, encryption_scheme,
+ base::TimeDelta::FromMicroseconds(
+ (seek_preroll != -1 ? seek_preroll : 0) / 1000),
+ codec_delay_in_frames);
return config->IsValidConfig();
}

Powered by Google App Engine
This is Rietveld 408576698