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

Unified Diff: media/remoting/remote_demuxer_stream_adapter.cc

Issue 2568003003: Handle EnableBitstreamConverter RPC message (Closed)
Patch Set: Created 4 years 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/remote_demuxer_stream_adapter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/remoting/remote_demuxer_stream_adapter.cc
diff --git a/media/remoting/remote_demuxer_stream_adapter.cc b/media/remoting/remote_demuxer_stream_adapter.cc
index cc66c18507285efb83f99defdce24f537406959f..d04b1949e0ca9ba2f331de7b928e7f7aacfd95b3 100644
--- a/media/remoting/remote_demuxer_stream_adapter.cc
+++ b/media/remoting/remote_demuxer_stream_adapter.cc
@@ -116,6 +116,9 @@ void RemoteDemuxerStreamAdapter::OnReceivedRpc(
case remoting::pb::RpcMessage::RPC_DS_INITIALIZE:
Initialize(message->integer_value());
break;
+ case remoting::pb::RpcMessage::RPC_DS_ENABLEBITSTREAMCONVERTER:
+ EnableBitstreamConverter();
+ break;
case remoting::pb::RpcMessage::RPC_DS_READUNTIL:
ReadUntil(std::move(message));
break;
@@ -175,6 +178,11 @@ void RemoteDemuxerStreamAdapter::Initialize(int remote_callback_handle) {
rpc_broker_, base::Passed(&rpc)));
}
+void RemoteDemuxerStreamAdapter::EnableBitstreamConverter() {
+ DCHECK(media_task_runner_->BelongsToCurrentThread());
+ demuxer_stream_->EnableBitstreamConverter();
+}
+
void RemoteDemuxerStreamAdapter::ReadUntil(
std::unique_ptr<remoting::pb::RpcMessage> message) {
DCHECK(media_task_runner_->BelongsToCurrentThread());
« no previous file with comments | « media/remoting/remote_demuxer_stream_adapter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698