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

Unified Diff: media/base/audio_buffer_converter.cc

Issue 2158923004: Convert media constants to constexpr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/base/audio_buffer_converter.cc
diff --git a/media/base/audio_buffer_converter.cc b/media/base/audio_buffer_converter.cc
index c4e213ebb33b96a6559317b61b7d40d7c715e773..ca59870a0a834183362b6ef4373125011b3b5ee8 100644
--- a/media/base/audio_buffer_converter.cc
+++ b/media/base/audio_buffer_converter.cc
@@ -56,7 +56,7 @@ void AudioBufferConverter::AddInput(const scoped_refptr<AudioBuffer>& buffer) {
return;
}
- if (timestamp_helper_.base_timestamp() == kNoTimestamp())
+ if (timestamp_helper_.base_timestamp() == kNoTimestamp)
timestamp_helper_.SetBaseTimestamp(buffer->timestamp());
queued_inputs_.push_back(buffer);
@@ -78,7 +78,7 @@ void AudioBufferConverter::Reset() {
audio_converter_.reset();
queued_inputs_.clear();
queued_outputs_.clear();
- timestamp_helper_.SetBaseTimestamp(kNoTimestamp());
+ timestamp_helper_.SetBaseTimestamp(kNoTimestamp);
input_params_ = output_params_;
input_frames_ = 0;
buffered_input_frames_ = 0.0;
@@ -87,7 +87,7 @@ void AudioBufferConverter::Reset() {
void AudioBufferConverter::ResetTimestampState() {
Flush();
- timestamp_helper_.SetBaseTimestamp(kNoTimestamp());
+ timestamp_helper_.SetBaseTimestamp(kNoTimestamp);
}
double AudioBufferConverter::ProvideInput(AudioBus* audio_bus,

Powered by Google App Engine
This is Rietveld 408576698