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

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

Issue 8399023: Fire canplaythrough event at the proper time for audio/video (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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
« no previous file with comments | « media/filters/dummy_demuxer.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/dummy_demuxer.h" 5 #include "media/filters/dummy_demuxer.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace media { 9 namespace media {
10 10
(...skipping 30 matching lines...) Expand all
41 new DummyDemuxerStream(DemuxerStream::AUDIO); 41 new DummyDemuxerStream(DemuxerStream::AUDIO);
42 if (has_video) 42 if (has_video)
43 streams_[DemuxerStream::VIDEO] = 43 streams_[DemuxerStream::VIDEO] =
44 new DummyDemuxerStream(DemuxerStream::VIDEO); 44 new DummyDemuxerStream(DemuxerStream::VIDEO);
45 } 45 }
46 46
47 DummyDemuxer::~DummyDemuxer() {} 47 DummyDemuxer::~DummyDemuxer() {}
48 48
49 void DummyDemuxer::SetPreload(Preload preload) {} 49 void DummyDemuxer::SetPreload(Preload preload) {}
50 50
51 int DummyDemuxer::GetBitrate() {
52 return 0;
53 }
54
51 scoped_refptr<DemuxerStream> DummyDemuxer::GetStream(DemuxerStream::Type type) { 55 scoped_refptr<DemuxerStream> DummyDemuxer::GetStream(DemuxerStream::Type type) {
52 return streams_[type]; 56 return streams_[type];
53 } 57 }
54 58
55 base::TimeDelta DummyDemuxer::GetStartTime() const { 59 base::TimeDelta DummyDemuxer::GetStartTime() const {
56 return base::TimeDelta(); 60 return base::TimeDelta();
57 } 61 }
58 62
59 } // namespace media 63 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/dummy_demuxer.h ('k') | media/filters/ffmpeg_demuxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698