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

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

Issue 10825108: Remove a bunch of dead fields found by Scythe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/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 18 matching lines...) Expand all
29 } 29 }
30 30
31 void DummyDemuxerStream::Read(const ReadCB& read_cb) {} 31 void DummyDemuxerStream::Read(const ReadCB& read_cb) {}
32 32
33 void DummyDemuxerStream::EnableBitstreamConverter() {} 33 void DummyDemuxerStream::EnableBitstreamConverter() {}
34 34
35 Ranges<base::TimeDelta> DummyDemuxerStream::GetBufferedRanges() { 35 Ranges<base::TimeDelta> DummyDemuxerStream::GetBufferedRanges() {
36 return Ranges<base::TimeDelta>(); 36 return Ranges<base::TimeDelta>();
37 } 37 }
38 38
39 DummyDemuxer::DummyDemuxer(bool has_video, bool has_audio) 39 DummyDemuxer::DummyDemuxer(bool has_video, bool has_audio) {
40 : has_video_(has_video),
41 has_audio_(has_audio) {
42 streams_.resize(DemuxerStream::NUM_TYPES); 40 streams_.resize(DemuxerStream::NUM_TYPES);
43 if (has_audio) 41 if (has_audio)
44 streams_[DemuxerStream::AUDIO] = 42 streams_[DemuxerStream::AUDIO] =
45 new DummyDemuxerStream(DemuxerStream::AUDIO); 43 new DummyDemuxerStream(DemuxerStream::AUDIO);
46 if (has_video) 44 if (has_video)
47 streams_[DemuxerStream::VIDEO] = 45 streams_[DemuxerStream::VIDEO] =
48 new DummyDemuxerStream(DemuxerStream::VIDEO); 46 new DummyDemuxerStream(DemuxerStream::VIDEO);
49 } 47 }
50 48
51 void DummyDemuxer::Initialize(DemuxerHost* host, 49 void DummyDemuxer::Initialize(DemuxerHost* host,
(...skipping 10 matching lines...) Expand all
62 return base::TimeDelta(); 60 return base::TimeDelta();
63 } 61 }
64 62
65 int DummyDemuxer::GetBitrate() { 63 int DummyDemuxer::GetBitrate() {
66 return 0; 64 return 0;
67 } 65 }
68 66
69 DummyDemuxer::~DummyDemuxer() {} 67 DummyDemuxer::~DummyDemuxer() {}
70 68
71 } // namespace media 69 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698