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

Unified Diff: media/formats/mp2t/mp2t_stream_parser.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/formats/mp2t/mp2t_stream_parser.cc
diff --git a/media/formats/mp2t/mp2t_stream_parser.cc b/media/formats/mp2t/mp2t_stream_parser.cc
index 3ff51212a4e60e16f6ce013c954615365bb00da0..238b58cc434b9e106dbf07ed011e056af2d0c216 100644
--- a/media/formats/mp2t/mp2t_stream_parser.cc
+++ b/media/formats/mp2t/mp2t_stream_parser.cc
@@ -550,7 +550,7 @@ bool Mp2tStreamParser::FinishInitializationIfNeeded() {
// TODO(wolenetz): If possible, detect and report track counts by type more
// accurately here. Currently, capped at max 1 each for audio and video, with
// assumption of 0 text tracks.
- InitParameters params(kInfiniteDuration());
+ InitParameters params(kInfiniteDuration);
params.detected_audio_track_count =
queue_with_config.audio_config.IsValidConfig() ? 1 : 0;
params.detected_video_track_count =

Powered by Google App Engine
This is Rietveld 408576698