| Index: chrome/browser/media/cast_transport_host_filter.cc
|
| diff --git a/chrome/browser/media/cast_transport_host_filter.cc b/chrome/browser/media/cast_transport_host_filter.cc
|
| index a4bf0f13198668cdac205f93b8c7439667a3aab1..e0a3756c0168d87062463c3b4e7899b076d58a7f 100644
|
| --- a/chrome/browser/media/cast_transport_host_filter.cc
|
| +++ b/chrome/browser/media/cast_transport_host_filter.cc
|
| @@ -118,8 +118,7 @@ bool CastTransportHostFilter::OnMessageReceived(const IPC::Message& message) {
|
| IPC_BEGIN_MESSAGE_MAP(CastTransportHostFilter, message)
|
| IPC_MESSAGE_HANDLER(CastHostMsg_New, OnNew)
|
| IPC_MESSAGE_HANDLER(CastHostMsg_Delete, OnDelete)
|
| - IPC_MESSAGE_HANDLER(CastHostMsg_InitializeAudio, OnInitializeAudio)
|
| - IPC_MESSAGE_HANDLER(CastHostMsg_InitializeVideo, OnInitializeVideo)
|
| + IPC_MESSAGE_HANDLER(CastHostMsg_InitializeStream, OnInitializeStream)
|
| IPC_MESSAGE_HANDLER(CastHostMsg_InsertFrame, OnInsertFrame)
|
| IPC_MESSAGE_HANDLER(CastHostMsg_SendSenderReport,
|
| OnSendSenderReport)
|
| @@ -196,33 +195,17 @@ void CastTransportHostFilter::OnDelete(int32_t channel_id) {
|
| }
|
| }
|
|
|
| -// TODO(xjz): Replace all the separate "init/start audio" and "init/start video"
|
| -// methods with a single "init/start rtp stream" that handles either media type.
|
| -void CastTransportHostFilter::OnInitializeAudio(
|
| +void CastTransportHostFilter::OnInitializeStream(
|
| int32_t channel_id,
|
| const media::cast::CastTransportRtpConfig& config) {
|
| media::cast::CastTransport* sender = id_map_.Lookup(channel_id);
|
| if (sender) {
|
| - sender->InitializeAudio(
|
| + sender->InitializeStream(
|
| config, base::WrapUnique(new RtcpClient(channel_id, config.ssrc,
|
| weak_factory_.GetWeakPtr())));
|
| } else {
|
| - DVLOG(1)
|
| - << "CastTransportHostFilter::OnInitializeAudio on non-existing channel";
|
| - }
|
| -}
|
| -
|
| -void CastTransportHostFilter::OnInitializeVideo(
|
| - int32_t channel_id,
|
| - const media::cast::CastTransportRtpConfig& config) {
|
| - media::cast::CastTransport* sender = id_map_.Lookup(channel_id);
|
| - if (sender) {
|
| - sender->InitializeVideo(
|
| - config, base::WrapUnique(new RtcpClient(channel_id, config.ssrc,
|
| - weak_factory_.GetWeakPtr())));
|
| - } else {
|
| - DVLOG(1)
|
| - << "CastTransportHostFilter::OnInitializeVideo on non-existing channel";
|
| + DVLOG(1) << "CastTransportHostFilter::OnInitializeStream on non-existing "
|
| + "channel";
|
| }
|
| }
|
|
|
|
|