Chromium Code Reviews| Index: webkit/media/webmediaplayer_proxy.cc |
| diff --git a/webkit/media/webmediaplayer_proxy.cc b/webkit/media/webmediaplayer_proxy.cc |
| index f6984f0e4603df35ecd88fb87f4b3724c962edc8..fd575c02ae6dadc65ff53b29d5274089f7044c6b 100644 |
| --- a/webkit/media/webmediaplayer_proxy.cc |
| +++ b/webkit/media/webmediaplayer_proxy.cc |
| @@ -187,10 +187,29 @@ void WebMediaPlayerProxy::DemuxerFlush() { |
| chunk_demuxer_->FlushData(); |
| } |
| -bool WebMediaPlayerProxy::DemuxerAppend(const uint8* data, size_t length) { |
| - if (chunk_demuxer_.get()) |
| - return chunk_demuxer_->AppendData(data, length); |
| - return false; |
| +media::ChunkDemuxer::AddIdStatus WebMediaPlayerProxy::DemuxerAddId( |
| + const std::string& id, |
| + const std::string& type) { |
| + if (!chunk_demuxer_.get()) |
| + return media::ChunkDemuxer::AisNotSupported; |
|
scherkus (not reviewing)
2012/04/12 20:58:32
would we ever get to this case? ditto below
it se
acolwell GONE FROM CHROMIUM
2012/04/12 22:43:12
I'll remove them and we'll see what happens. I put
|
| + |
| + return chunk_demuxer_->AddId(id, type); |
| +} |
| + |
| +void WebMediaPlayerProxy::DemuxerRemoveId(const std::string& id) { |
| + if (!chunk_demuxer_.get()) |
| + return; |
| + |
| + chunk_demuxer_->RemoveId(id); |
| +} |
| + |
| +bool WebMediaPlayerProxy::DemuxerAppend(const std::string& id, |
| + const uint8* data, |
| + size_t length) { |
| + if (!chunk_demuxer_.get()) |
| + return false; |
| + |
| + return chunk_demuxer_->AppendData(id, data, length); |
| } |
| void WebMediaPlayerProxy::DemuxerEndOfStream(media::PipelineStatus status) { |