OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 case MSG_VIDEOCAPTURESTATE: { | 543 case MSG_VIDEOCAPTURESTATE: { |
544 CaptureStateParams* data = | 544 CaptureStateParams* data = |
545 static_cast<CaptureStateParams*>(message->pdata); | 545 static_cast<CaptureStateParams*>(message->pdata); |
546 SignalVideoCaptureStateChange(data->capturer, data->state); | 546 SignalVideoCaptureStateChange(data->capturer, data->state); |
547 delete data; | 547 delete data; |
548 break; | 548 break; |
549 } | 549 } |
550 } | 550 } |
551 } | 551 } |
552 | 552 |
553 bool ChannelManager::StartAecDump(rtc::PlatformFile file) { | 553 bool ChannelManager::StartAecDump(rtc::PlatformFile file, |
554 return worker_thread_->Invoke<bool>( | 554 int64_t max_size_bytes) { |
555 Bind(&MediaEngineInterface::StartAecDump, media_engine_.get(), file)); | 555 return worker_thread_->Invoke<bool>(Bind(&MediaEngineInterface::StartAecDump, |
| 556 media_engine_.get(), file, |
| 557 max_size_bytes)); |
556 } | 558 } |
557 | 559 |
558 void ChannelManager::StopAecDump() { | 560 void ChannelManager::StopAecDump() { |
559 worker_thread_->Invoke<void>( | 561 worker_thread_->Invoke<void>( |
560 Bind(&MediaEngineInterface::StopAecDump, media_engine_.get())); | 562 Bind(&MediaEngineInterface::StopAecDump, media_engine_.get())); |
561 } | 563 } |
562 | 564 |
563 bool ChannelManager::StartRtcEventLog(rtc::PlatformFile file) { | 565 bool ChannelManager::StartRtcEventLog(rtc::PlatformFile file) { |
564 return worker_thread_->Invoke<bool>( | 566 return worker_thread_->Invoke<bool>( |
565 Bind(&MediaEngineInterface::StartRtcEventLog, media_engine_.get(), file)); | 567 Bind(&MediaEngineInterface::StartRtcEventLog, media_engine_.get(), file)); |
566 } | 568 } |
567 | 569 |
568 void ChannelManager::StopRtcEventLog() { | 570 void ChannelManager::StopRtcEventLog() { |
569 worker_thread_->Invoke<void>( | 571 worker_thread_->Invoke<void>( |
570 Bind(&MediaEngineInterface::StopRtcEventLog, media_engine_.get())); | 572 Bind(&MediaEngineInterface::StopRtcEventLog, media_engine_.get())); |
571 } | 573 } |
572 | 574 |
573 } // namespace cricket | 575 } // namespace cricket |
OLD | NEW |