Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: media/remoting/fake_media_resource.cc

Issue 2667283002: Refactor MediaResource to be multi-stream capable (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/remoting/fake_media_resource.h ('k') | media/renderers/renderer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/remoting/fake_media_resource.cc
diff --git a/media/remoting/fake_media_resource.cc b/media/remoting/fake_media_resource.cc
index 16d7403559050cb51cb3d5b2ca8cad453035a19c..91be95d3a9bbba71eb7f49bee4c8f259c6f771f5 100644
--- a/media/remoting/fake_media_resource.cc
+++ b/media/remoting/fake_media_resource.cc
@@ -73,7 +73,7 @@ VideoRotation FakeDemuxerStream::video_rotation() {
}
bool FakeDemuxerStream::enabled() const {
- return false;
+ return true;
}
void FakeDemuxerStream::CreateFakeFrame(size_t size,
@@ -106,10 +106,15 @@ FakeMediaResource::FakeMediaResource()
FakeMediaResource::~FakeMediaResource() {}
-DemuxerStream* FakeMediaResource::GetStream(DemuxerStream::Type type) {
- if (type == DemuxerStream::AUDIO)
- return reinterpret_cast<DemuxerStream*>(demuxer_stream_.get());
- return nullptr;
+std::vector<DemuxerStream*> FakeMediaResource::GetStreams() {
+ std::vector<DemuxerStream*> streams;
+ streams.push_back(demuxer_stream_.get());
+ return streams;
+}
+
+void FakeMediaResource::SetStreamStatusChangeCB(
+ const StreamStatusChangeCB& cb) {
+ NOTIMPLEMENTED();
}
} // namespace remoting
« no previous file with comments | « media/remoting/fake_media_resource.h ('k') | media/renderers/renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698