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

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

Issue 1935873002: Implement disabling and enabling media tracks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@track-control2
Patch Set: rebase 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 unified diff | Download patch
« no previous file with comments | « media/filters/decrypting_demuxer_stream.h ('k') | media/filters/ffmpeg_demuxer.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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 145 }
146 146
147 bool DecryptingDemuxerStream::SupportsConfigChanges() { 147 bool DecryptingDemuxerStream::SupportsConfigChanges() {
148 return demuxer_stream_->SupportsConfigChanges(); 148 return demuxer_stream_->SupportsConfigChanges();
149 } 149 }
150 150
151 VideoRotation DecryptingDemuxerStream::video_rotation() { 151 VideoRotation DecryptingDemuxerStream::video_rotation() {
152 return demuxer_stream_->video_rotation(); 152 return demuxer_stream_->video_rotation();
153 } 153 }
154 154
155 bool DecryptingDemuxerStream::enabled() const {
156 return demuxer_stream_->enabled();
157 }
158
159 void DecryptingDemuxerStream::set_enabled(bool enabled,
160 base::TimeDelta timestamp) {
161 demuxer_stream_->set_enabled(enabled, timestamp);
162 }
163
164 void DecryptingDemuxerStream::SetStreamRestartedCB(
165 const StreamRestartedCB& cb) {
166 demuxer_stream_->SetStreamRestartedCB(cb);
167 }
168
155 DecryptingDemuxerStream::~DecryptingDemuxerStream() { 169 DecryptingDemuxerStream::~DecryptingDemuxerStream() {
156 DVLOG(2) << __FUNCTION__ << " : state_ = " << state_; 170 DVLOG(2) << __FUNCTION__ << " : state_ = " << state_;
157 DCHECK(task_runner_->BelongsToCurrentThread()); 171 DCHECK(task_runner_->BelongsToCurrentThread());
158 172
159 if (state_ == kUninitialized) 173 if (state_ == kUninitialized)
160 return; 174 return;
161 175
162 if (decryptor_) { 176 if (decryptor_) {
163 decryptor_->CancelDecrypt(GetDecryptorStreamType()); 177 decryptor_->CancelDecrypt(GetDecryptorStreamType());
164 decryptor_ = NULL; 178 decryptor_ = NULL;
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 break; 383 break;
370 } 384 }
371 385
372 default: 386 default:
373 NOTREACHED(); 387 NOTREACHED();
374 return; 388 return;
375 } 389 }
376 } 390 }
377 391
378 } // namespace media 392 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/decrypting_demuxer_stream.h ('k') | media/filters/ffmpeg_demuxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698