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

Unified Diff: media/filters/decoder_stream_traits.h

Issue 1954633002: MEDIA_LOG for large encoded timestamp gaps in decoder stream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: New AudioTimestampValidator class and tests Created 4 years, 7 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/decoder_stream_traits.h
diff --git a/media/filters/decoder_stream_traits.h b/media/filters/decoder_stream_traits.h
index 7d5389989b1a99ee879a0f295f42e0c24b4db28b..2dab09f6859e1005ce0b243c7d403309f1803760 100644
--- a/media/filters/decoder_stream_traits.h
+++ b/media/filters/decoder_stream_traits.h
@@ -41,6 +41,7 @@ struct DecoderStreamTraits<DemuxerStream::AUDIO> {
static void ReportStatistics(const StatisticsCB& statistics_cb,
int bytes_decoded);
static scoped_refptr<OutputType> CreateEOSOutput();
+ static constexpr bool kShouldValidateTimestamps = true;
};
template <>
@@ -61,6 +62,7 @@ struct DecoderStreamTraits<DemuxerStream::VIDEO> {
static void ReportStatistics(const StatisticsCB& statistics_cb,
int bytes_decoded);
static scoped_refptr<OutputType> CreateEOSOutput();
+ static constexpr bool kShouldValidateTimestamps = false;
};
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698