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

Unified Diff: chromecast/media/cma/pipeline/media_pipeline_impl.cc

Issue 2722673004: Revert of [Chromecast] Process streams with different post-processing. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « chromecast/media/cma/pipeline/load_type.h ('k') | chromecast/media/service/cast_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/pipeline/media_pipeline_impl.cc
diff --git a/chromecast/media/cma/pipeline/media_pipeline_impl.cc b/chromecast/media/cma/pipeline/media_pipeline_impl.cc
index 82ed1f98608c091391c1f4a364d404cfd0123541..14ced50a4d383c37ea7f16eac46266c695ab54b9 100644
--- a/chromecast/media/cma/pipeline/media_pipeline_impl.cc
+++ b/chromecast/media/cma/pipeline/media_pipeline_impl.cc
@@ -32,25 +32,19 @@
namespace {
// Buffering parameters when load_type is kLoadTypeUrl.
-constexpr base::TimeDelta kLowBufferThresholdURL(
+const base::TimeDelta kLowBufferThresholdURL(
base::TimeDelta::FromMilliseconds(2000));
-constexpr base::TimeDelta kHighBufferThresholdURL(
+const base::TimeDelta kHighBufferThresholdURL(
base::TimeDelta::FromMilliseconds(6000));
// Buffering parameters when load_type is kLoadTypeMediaSource.
-constexpr base::TimeDelta kLowBufferThresholdMediaSource(
+const base::TimeDelta kLowBufferThresholdMediaSource(
base::TimeDelta::FromMilliseconds(0));
-constexpr base::TimeDelta kHighBufferThresholdMediaSource(
+const base::TimeDelta kHighBufferThresholdMediaSource(
base::TimeDelta::FromMilliseconds(300));
-// Buffering parameters when load_type is kLoadTypeCommunication.
-constexpr base::TimeDelta kLowBufferThresholdCommunication(
- base::TimeDelta::FromMilliseconds(0));
-constexpr base::TimeDelta kHighBufferThresholdCommunication(
- base::TimeDelta::FromMilliseconds(20));
-
// Interval between two updates of the media time.
-constexpr base::TimeDelta kTimeUpdateInterval(
+const base::TimeDelta kTimeUpdateInterval(
base::TimeDelta::FromMilliseconds(250));
// Interval between two updates of the statistics is equal to:
@@ -129,9 +123,6 @@
if (load_type == kLoadTypeMediaSource) {
low_threshold = kLowBufferThresholdMediaSource;
high_threshold = kHighBufferThresholdMediaSource;
- } else if (load_type == kLoadTypeCommunication) {
- low_threshold = kLowBufferThresholdCommunication;
- high_threshold = kHighBufferThresholdCommunication;
}
scoped_refptr<BufferingConfig> buffering_config(
new BufferingConfig(low_threshold, high_threshold));
« no previous file with comments | « chromecast/media/cma/pipeline/load_type.h ('k') | chromecast/media/service/cast_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698