blob: c25f9e73d627395bc32d278a9f4b215c35c6f865 [file] [log] [blame]
David Ghandehari9e5b5872016-07-28 09:50:04 -07001// 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
3// found in the LICENSE file.
4
5#include "media/base/data_source.h"
6
7#include "base/logging.h"
8
9namespace media {
10
11// static
12const int DataSource::kReadError = -1;
13
14DataSourceHost::~DataSourceHost() {}
15
16DataSource::DataSource() : host_(NULL) {}
17
18DataSource::~DataSource() {}
19
20void DataSource::set_host(DataSourceHost* host) {
21 DCHECK(host);
22 DCHECK(!host_);
23 host_ = host;
24}
25
26void DataSource::SetPlaybackRate(float playback_rate) {}
27
28DataSourceHost* DataSource::host() { return host_; }
29
30} // namespace media