| Index: webrtc/video/payload_router.h
|
| diff --git a/webrtc/video/payload_router.h b/webrtc/video/payload_router.h
|
| index c2f4b0442cb226bb77667330614e1a1251492fd1..ce65bae6f81d150c8110a072b414e24e5e7eed77 100644
|
| --- a/webrtc/video/payload_router.h
|
| +++ b/webrtc/video/payload_router.h
|
| @@ -17,6 +17,7 @@
|
| #include "webrtc/base/criticalsection.h"
|
| #include "webrtc/base/thread_annotations.h"
|
| #include "webrtc/common_types.h"
|
| +#include "webrtc/config.h"
|
| #include "webrtc/video_encoder.h"
|
| #include "webrtc/system_wrappers/include/atomic32.h"
|
|
|
| @@ -36,7 +37,7 @@ class PayloadRouter : public EncodedImageCallback {
|
| ~PayloadRouter();
|
|
|
| static size_t DefaultMaxPayloadLength();
|
| - void SetSendingRtpModules(size_t num_sending_modules);
|
| + void SetSendStreams(const std::vector<VideoStream>& streams);
|
|
|
| // PayloadRouter will only route packets if being active, all packets will be
|
| // dropped otherwise.
|
| @@ -49,9 +50,8 @@ class PayloadRouter : public EncodedImageCallback {
|
| const CodecSpecificInfo* codec_specific_info,
|
| const RTPFragmentationHeader* fragmentation) override;
|
|
|
| - // Configures current target bitrate per module. 'stream_bitrates' is assumed
|
| - // to be in the same order as 'SetSendingRtpModules'.
|
| - void SetTargetSendBitrates(const std::vector<uint32_t>& stream_bitrates);
|
| + // Configures current target bitrate.
|
| + void SetTargetSendBitrate(uint32_t bitrate_bps);
|
|
|
| // Returns the maximum allowed data payload length, given the configured MTU
|
| // and RTP headers.
|
| @@ -62,6 +62,7 @@ class PayloadRouter : public EncodedImageCallback {
|
|
|
| rtc::CriticalSection crit_;
|
| bool active_ GUARDED_BY(crit_);
|
| + std::vector<VideoStream> streams_ GUARDED_BY(crit_);
|
| size_t num_sending_modules_ GUARDED_BY(crit_);
|
|
|
| // Rtp modules are assumed to be sorted in simulcast index order. Not owned.
|
|
|