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

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

Issue 9864022: Move DataSource::SetPreload() to BufferedDataSource. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
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/chunk_demuxer.h" 5 #include "media/filters/chunk_demuxer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "media/base/audio_decoder_config.h" 10 #include "media/base/audio_decoder_config.h"
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 } 404 }
405 405
406 cb.Run(status); 406 cb.Run(status);
407 } 407 }
408 408
409 void ChunkDemuxer::OnAudioRendererDisabled() { 409 void ChunkDemuxer::OnAudioRendererDisabled() {
410 base::AutoLock auto_lock(lock_); 410 base::AutoLock auto_lock(lock_);
411 audio_ = NULL; 411 audio_ = NULL;
412 } 412 }
413 413
414 void ChunkDemuxer::SetPreload(Preload preload) {}
415
416 int ChunkDemuxer::GetBitrate() { 414 int ChunkDemuxer::GetBitrate() {
417 // TODO(acolwell): Implement bitrate reporting. 415 // TODO(acolwell): Implement bitrate reporting.
418 return 0; 416 return 0;
419 } 417 }
420 418
421 bool ChunkDemuxer::IsLocalSource() { 419 bool ChunkDemuxer::IsLocalSource() {
422 // TODO(acolwell): Report whether source is local or not. 420 // TODO(acolwell): Report whether source is local or not.
423 return false; 421 return false;
424 } 422 }
425 423
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 if (!video_->CanAddBuffers(buffers)) 729 if (!video_->CanAddBuffers(buffers))
732 return false; 730 return false;
733 731
734 video_->AddBuffers(buffers); 732 video_->AddBuffers(buffers);
735 seek_waits_for_data_ = false; 733 seek_waits_for_data_ = false;
736 734
737 return true; 735 return true;
738 } 736 }
739 737
740 } // namespace media 738 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698