blob: d3d3bcbc3c34521a949c69e3a6390bd7e4c77ff4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/base/filters.h"
#include "base/logging.h"
#include "base/message_loop.h"
namespace media {
Filter::Filter() : host_(NULL), message_loop_(NULL) {}
Filter::~Filter() {}
const char* Filter::major_mime_type() const {
return "";
}
void Filter::set_host(FilterHost* host) {
DCHECK(host);
DCHECK(!host_);
host_ = host;
}
FilterHost* Filter::host() {
return host_;
}
bool Filter::requires_message_loop() const {
return false;
}
const char* Filter::message_loop_name() const {
return "FilterThread";
}
void Filter::set_message_loop(MessageLoop* message_loop) {
DCHECK(message_loop);
DCHECK(!message_loop_);
message_loop_ = message_loop;
}
MessageLoop* Filter::message_loop() {
return message_loop_;
}
void Filter::Play(FilterCallback* callback) {
DCHECK(callback);
if (callback) {
callback->Run();
delete callback;
}
}
void Filter::Pause(FilterCallback* callback) {
DCHECK(callback);
if (callback) {
callback->Run();
delete callback;
}
}
void Filter::Flush(FilterCallback* callback) {
DCHECK(callback);
if (callback) {
callback->Run();
delete callback;
}
}
void Filter::Stop(FilterCallback* callback) {
DCHECK(callback);
if (callback) {
callback->Run();
delete callback;
}
}
void Filter::SetPlaybackRate(float playback_rate) {}
void Filter::Seek(base::TimeDelta time, FilterCallback* callback) {
scoped_ptr<FilterCallback> seek_callback(callback);
if (seek_callback.get()) {
seek_callback->Run();
}
}
void Filter::OnAudioRendererDisabled() {
}
bool DataSource::IsUrlSupported(const std::string& url) {
return true;
}
bool Demuxer::requires_message_loop() const {
return true;
}
const char* Demuxer::message_loop_name() const {
return "DemuxerThread";
}
const char* AudioDecoder::major_mime_type() const {
return mime_type::kMajorTypeAudio;
}
bool AudioDecoder::requires_message_loop() const {
return true;
}
const char* AudioDecoder::message_loop_name() const {
return "AudioDecoderThread";
}
const char* AudioRenderer::major_mime_type() const {
return mime_type::kMajorTypeAudio;
}
const char* VideoDecoder::major_mime_type() const {
return mime_type::kMajorTypeVideo;
}
bool VideoDecoder::requires_message_loop() const {
return true;
}
const char* VideoDecoder::message_loop_name() const {
return "VideoDecoderThread";
}
const char* VideoRenderer::major_mime_type() const {
return mime_type::kMajorTypeVideo;
}
void* DemuxerStream::QueryInterface(const char* interface_id) {
return NULL;
}
DemuxerStream::~DemuxerStream() {}
VideoDecoder::VideoDecoder() {}
VideoDecoder::~VideoDecoder() {}
AudioDecoder::AudioDecoder() {}
AudioDecoder::~AudioDecoder() {}
} // namespace media
|