OLD | NEW |
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/base/demuxer.h" | 5 #include "media/base/demuxer.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace media { | 9 namespace media { |
10 | 10 |
11 DemuxerHost::~DemuxerHost() {} | 11 DemuxerHost::~DemuxerHost() {} |
12 | 12 |
13 Demuxer::Demuxer() : host_(NULL) {} | 13 Demuxer::Demuxer() {} |
14 | 14 |
15 Demuxer::~Demuxer() {} | 15 Demuxer::~Demuxer() {} |
16 | 16 |
17 void Demuxer::set_host(DemuxerHost* host) { | |
18 DCHECK(host); | |
19 DCHECK(!host_); | |
20 host_ = host; | |
21 } | |
22 | |
23 void Demuxer::SetPlaybackRate(float playback_rate) {} | 17 void Demuxer::SetPlaybackRate(float playback_rate) {} |
24 | 18 |
25 void Demuxer::Seek(base::TimeDelta time, const PipelineStatusCB& status_cb) { | 19 void Demuxer::Seek(base::TimeDelta time, const PipelineStatusCB& status_cb) { |
26 DCHECK(!status_cb.is_null()); | 20 DCHECK(!status_cb.is_null()); |
27 status_cb.Run(PIPELINE_OK); | 21 status_cb.Run(PIPELINE_OK); |
28 } | 22 } |
29 | 23 |
30 void Demuxer::Stop(const base::Closure& callback) { | 24 void Demuxer::Stop(const base::Closure& callback) { |
31 DCHECK(!callback.is_null()); | 25 DCHECK(!callback.is_null()); |
32 callback.Run(); | 26 callback.Run(); |
33 } | 27 } |
34 | 28 |
35 void Demuxer::OnAudioRendererDisabled() {} | 29 void Demuxer::OnAudioRendererDisabled() {} |
36 | 30 |
37 } // namespace media | 31 } // namespace media |
OLD | NEW |