| Index: talk/session/media/channel.cc
|
| diff --git a/talk/session/media/channel.cc b/talk/session/media/channel.cc
|
| index 294681ef1449aa94033112e8e5315cec5048a0f7..3c5b9ddc449ed250e37f177997235e16fa43dabb 100644
|
| --- a/talk/session/media/channel.cc
|
| +++ b/talk/session/media/channel.cc
|
| @@ -1271,10 +1271,6 @@ bool VoiceChannel::SetAudioSend(uint32 ssrc, bool mute,
|
| media_channel(), ssrc, mute, options, renderer));
|
| }
|
|
|
| -bool VoiceChannel::SetRingbackTone(const void* buf, int len) {
|
| - return InvokeOnWorker(Bind(&VoiceChannel::SetRingbackTone_w, this, buf, len));
|
| -}
|
| -
|
| // TODO(juberti): Handle early media the right way. We should get an explicit
|
| // ringing message telling us to start playing local ringback, which we cancel
|
| // if any early media actually arrives. For now, we do the opposite, which is
|
| @@ -1291,11 +1287,6 @@ void VoiceChannel::SetEarlyMedia(bool enable) {
|
| }
|
| }
|
|
|
| -bool VoiceChannel::PlayRingbackTone(uint32 ssrc, bool play, bool loop) {
|
| - return InvokeOnWorker(Bind(&VoiceChannel::PlayRingbackTone_w,
|
| - this, ssrc, play, loop));
|
| -}
|
| -
|
| bool VoiceChannel::PressDTMF(int digit, bool playout) {
|
| int flags = DF_SEND;
|
| if (playout) {
|
| @@ -1505,21 +1496,6 @@ bool VoiceChannel::SetRemoteContent_w(const MediaContentDescription* content,
|
| return true;
|
| }
|
|
|
| -bool VoiceChannel::SetRingbackTone_w(const void* buf, int len) {
|
| - ASSERT(worker_thread() == rtc::Thread::Current());
|
| - return media_channel()->SetRingbackTone(static_cast<const char*>(buf), len);
|
| -}
|
| -
|
| -bool VoiceChannel::PlayRingbackTone_w(uint32 ssrc, bool play, bool loop) {
|
| - ASSERT(worker_thread() == rtc::Thread::Current());
|
| - if (play) {
|
| - LOG(LS_INFO) << "Playing ringback tone, loop=" << loop;
|
| - } else {
|
| - LOG(LS_INFO) << "Stopping ringback tone";
|
| - }
|
| - return media_channel()->PlayRingbackTone(ssrc, play, loop);
|
| -}
|
| -
|
| void VoiceChannel::HandleEarlyMediaTimeout() {
|
| // This occurs on the main thread, not the worker thread.
|
| if (!received_media_) {
|
|
|