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

Unified Diff: media/filters/source_buffer_stream.cc

Issue 177333003: Add support for midstream audio configuration changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ABS
Patch Set: add Reset() tests. Only enable ABC in MSE case. Created 6 years, 9 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 | « media/filters/pipeline_integration_test_base.cc ('k') | media/media.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/source_buffer_stream.cc
diff --git a/media/filters/source_buffer_stream.cc b/media/filters/source_buffer_stream.cc
index 286300dcdaee4850f78db6a070fa17b1409d3a50..d61fc5ef00c2b6a6378be7d4c988f50bc0587e91 100644
--- a/media/filters/source_buffer_stream.cc
+++ b/media/filters/source_buffer_stream.cc
@@ -1335,7 +1335,7 @@ bool SourceBufferStream::UpdateAudioConfig(const AudioDecoderConfig& config) {
return false;
}
- if (audio_configs_[0].samples_per_second() != config.samples_per_second()) {
+ /*if (audio_configs_[0].samples_per_second() != config.samples_per_second()) {
DaleCurtis 2014/03/24 23:04:53 Stay / go?
rileya (GONE FROM CHROMIUM) 2014/03/24 23:09:43 Whoops, missed this, removed.
MEDIA_LOG(log_cb_) << "Audio sample rate changes not allowed.";
return false;
}
@@ -1348,7 +1348,7 @@ bool SourceBufferStream::UpdateAudioConfig(const AudioDecoderConfig& config) {
if (audio_configs_[0].bits_per_channel() != config.bits_per_channel()) {
MEDIA_LOG(log_cb_) << "Audio bits per channel changes not allowed.";
return false;
- }
+ }*/
if (audio_configs_[0].is_encrypted() != config.is_encrypted()) {
MEDIA_LOG(log_cb_) << "Audio encryption changes not allowed.";
« no previous file with comments | « media/filters/pipeline_integration_test_base.cc ('k') | media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698