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

Unified Diff: content/renderer/media/android/media_source_delegate.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: content/renderer/media/android/media_source_delegate.cc
diff --git a/content/renderer/media/android/media_source_delegate.cc b/content/renderer/media/android/media_source_delegate.cc
index 668d2480cf5007fe3a020a9b0741d0be76eafbd1..24a65a04804b439549d34fa1ebcf93ac4f84b416 100644
--- a/content/renderer/media/android/media_source_delegate.cc
+++ b/content/renderer/media/android/media_source_delegate.cc
@@ -57,7 +57,7 @@ MediaSourceDelegate::MediaSourceDelegate(
seeking_(false),
is_video_encrypted_(false),
doing_browser_seek_(false),
- browser_seek_time_(media::kNoTimestamp()),
+ browser_seek_time_(media::kNoTimestamp),
expecting_regular_seek_(false),
access_unit_size_(0),
main_task_runner_(base::ThreadTaskRunnerHandle::Get()),
@@ -293,7 +293,7 @@ void MediaSourceDelegate::Seek(
browser_seek_time_ = internal_seek_time;
} else {
expecting_regular_seek_ = false;
- browser_seek_time_ = media::kNoTimestamp();
+ browser_seek_time_ = media::kNoTimestamp;
}
}
@@ -701,11 +701,11 @@ void MediaSourceDelegate::NotifyDemuxerReady(bool is_cdm_attached) {
base::TimeDelta MediaSourceDelegate::GetDuration() const {
DCHECK(media_task_runner_->BelongsToCurrentThread());
if (!chunk_demuxer_)
- return media::kNoTimestamp();
+ return media::kNoTimestamp;
double duration = chunk_demuxer_->GetDuration();
if (duration == std::numeric_limits<double>::infinity())
- return media::kInfiniteDuration();
+ return media::kInfiniteDuration;
return base::TimeDelta::FromSecondsD(duration);
}

Powered by Google App Engine
This is Rietveld 408576698