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

Unified Diff: media/base/stream_parser_buffer.h

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/stream_parser_buffer.h
diff --git a/media/base/stream_parser_buffer.h b/media/base/stream_parser_buffer.h
index 74649aefd545b98a68dd8ac016b4b3e8c187d6da..dcfe404d8abee31d63f1a835e079cba83438e429 100644
--- a/media/base/stream_parser_buffer.h
+++ b/media/base/stream_parser_buffer.h
@@ -99,7 +99,7 @@ class DecodeTimestamp {
};
MEDIA_EXPORT extern inline DecodeTimestamp kNoDecodeTimestamp() {
- return DecodeTimestamp::FromPresentationTime(kNoTimestamp());
+ return DecodeTimestamp::FromPresentationTime(kNoTimestamp);
}
class MEDIA_EXPORT StreamParserBuffer : public DecoderBuffer {
@@ -125,7 +125,7 @@ class MEDIA_EXPORT StreamParserBuffer : public DecoderBuffer {
Type type,
TrackId track_id);
- // Decode timestamp. If not explicitly set, or set to kNoTimestamp(), the
+ // Decode timestamp. If not explicitly set, or set to kNoTimestamp, the
// value will be taken from the normal timestamp.
DecodeTimestamp GetDecodeTimestamp() const;
void SetDecodeTimestamp(DecodeTimestamp timestamp);
@@ -154,7 +154,7 @@ class MEDIA_EXPORT StreamParserBuffer : public DecoderBuffer {
//
// |pre_splice_buffers| will be deep copied and each copy's splice_timestamp()
// will be set to this buffer's splice_timestamp(). A copy of |this|, with a
- // splice_timestamp() of kNoTimestamp(), will be added to the end of
+ // splice_timestamp() of kNoTimestamp, will be added to the end of
// |splice_buffers_|.
//
// See the Audio Splice Frame Algorithm in the MSE specification for details.

Powered by Google App Engine
This is Rietveld 408576698