Index: media/mojo/services/media_resource_shim.cc |
diff --git a/media/mojo/services/media_resource_shim.cc b/media/mojo/services/media_resource_shim.cc |
index 2d178922e888cdaedee03bcf2278be7ac53f6fa7..fb984103ebc047baf1f778d3390d03954c10277e 100644 |
--- a/media/mojo/services/media_resource_shim.cc |
+++ b/media/mojo/services/media_resource_shim.cc |
@@ -30,16 +30,17 @@ MediaResourceShim::MediaResourceShim( |
MediaResourceShim::~MediaResourceShim() {} |
-// This function returns only the first stream of the given |type| for now. |
-// TODO(servolk): Make this work with multiple streams. |
-DemuxerStream* MediaResourceShim::GetStream(DemuxerStream::Type type) { |
+std::vector<DemuxerStream*> MediaResourceShim::GetStreams() { |
DCHECK(demuxer_ready_cb_.is_null()); |
- for (auto& stream : streams_) { |
- if (stream->type() == type) |
- return stream.get(); |
- } |
+ std::vector<DemuxerStream*> result; |
+ for (auto& stream : streams_) |
+ result.push_back(stream.get()); |
+ return result; |
+} |
- return nullptr; |
+void MediaResourceShim::SetStreamStatusChangeCB( |
+ const StreamStatusChangeCB& cb) { |
+ NOTIMPLEMENTED(); |
} |
void MediaResourceShim::OnStreamReady() { |