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

Side by Side Diff: media/filters/decrypting_demuxer_stream.cc

Issue 208263018: Add SupportsConfigChanges() to DemuxerStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audioconverterchunk
Patch Set: Remove DCHECK 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 unified diff | Download patch
« no previous file with comments | « media/filters/decrypting_demuxer_stream.h ('k') | media/filters/fake_demuxer_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/filters/decrypting_demuxer_stream.h" 5 #include "media/filters/decrypting_demuxer_stream.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 DemuxerStream::Type DecryptingDemuxerStream::type() { 155 DemuxerStream::Type DecryptingDemuxerStream::type() {
156 DCHECK(state_ != kUninitialized && state_ != kDecryptorRequested) << state_; 156 DCHECK(state_ != kUninitialized && state_ != kDecryptorRequested) << state_;
157 return demuxer_stream_->type(); 157 return demuxer_stream_->type();
158 } 158 }
159 159
160 void DecryptingDemuxerStream::EnableBitstreamConverter() { 160 void DecryptingDemuxerStream::EnableBitstreamConverter() {
161 demuxer_stream_->EnableBitstreamConverter(); 161 demuxer_stream_->EnableBitstreamConverter();
162 } 162 }
163 163
164 bool DecryptingDemuxerStream::SupportsConfigChanges() {
165 return demuxer_stream_->SupportsConfigChanges();
166 }
167
164 DecryptingDemuxerStream::~DecryptingDemuxerStream() { 168 DecryptingDemuxerStream::~DecryptingDemuxerStream() {
165 DVLOG(2) << __FUNCTION__ << " : state_ = " << state_; 169 DVLOG(2) << __FUNCTION__ << " : state_ = " << state_;
166 } 170 }
167 171
168 void DecryptingDemuxerStream::SetDecryptor(Decryptor* decryptor) { 172 void DecryptingDemuxerStream::SetDecryptor(Decryptor* decryptor) {
169 DVLOG(2) << __FUNCTION__; 173 DVLOG(2) << __FUNCTION__;
170 DCHECK(task_runner_->BelongsToCurrentThread()); 174 DCHECK(task_runner_->BelongsToCurrentThread());
171 DCHECK_EQ(state_, kDecryptorRequested) << state_; 175 DCHECK_EQ(state_, kDecryptorRequested) << state_;
172 DCHECK(!init_cb_.is_null()); 176 DCHECK(!init_cb_.is_null());
173 DCHECK(!set_decryptor_ready_cb_.is_null()); 177 DCHECK(!set_decryptor_ready_cb_.is_null());
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 break; 390 break;
387 } 391 }
388 392
389 default: 393 default:
390 NOTREACHED(); 394 NOTREACHED();
391 return; 395 return;
392 } 396 }
393 } 397 }
394 398
395 } // namespace media 399 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/decrypting_demuxer_stream.h ('k') | media/filters/fake_demuxer_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698