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

Unified Diff: media/filters/decrypting_audio_decoder.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/filters/decrypting_audio_decoder.cc
diff --git a/media/filters/decrypting_audio_decoder.cc b/media/filters/decrypting_audio_decoder.cc
index bc2b89d61ad2c00bfb7b142353f2c63545bd7443..eaa84114c7b0d85afb811cd0f41afb71caf1d305 100644
--- a/media/filters/decrypting_audio_decoder.cc
+++ b/media/filters/decrypting_audio_decoder.cc
@@ -114,7 +114,7 @@ void DecryptingAudioDecoder::Decode(const scoped_refptr<DecoderBuffer>& buffer,
// Initialize the |next_output_timestamp_| to be the timestamp of the first
// non-EOS buffer.
- if (timestamp_helper_->base_timestamp() == kNoTimestamp() &&
+ if (timestamp_helper_->base_timestamp() == kNoTimestamp &&
!buffer->end_of_stream()) {
timestamp_helper_->SetBaseTimestamp(buffer->timestamp());
}
@@ -323,7 +323,7 @@ void DecryptingAudioDecoder::OnKeyAdded() {
void DecryptingAudioDecoder::DoReset() {
DCHECK(init_cb_.is_null());
DCHECK(decode_cb_.is_null());
- timestamp_helper_->SetBaseTimestamp(kNoTimestamp());
+ timestamp_helper_->SetBaseTimestamp(kNoTimestamp);
state_ = kIdle;
base::ResetAndReturn(&reset_cb_).Run();
}

Powered by Google App Engine
This is Rietveld 408576698