зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1903098 (MOZ) - field_trials arg added to VideoStreamFactory::CreateEncoderStreams
This commit is contained in:
Родитель
7fb6c10d0a
Коммит
a5b6b8d72c
|
@ -196,6 +196,7 @@ void VideoStreamFactory::SelectMaxFramerate(
|
|||
}
|
||||
|
||||
std::vector<webrtc::VideoStream> VideoStreamFactory::CreateEncoderStreams(
|
||||
const webrtc::FieldTrialsView& field_trials,
|
||||
int aWidth, int aHeight, const webrtc::VideoEncoderConfig& aConfig) {
|
||||
// We only allow one layer when screensharing
|
||||
const size_t streamCount =
|
||||
|
|
|
@ -58,6 +58,7 @@ class VideoStreamFactory
|
|||
// This gets called off-main thread and may hold internal webrtc.org
|
||||
// locks. May *NOT* lock the conduit's mutex, to avoid deadlocks.
|
||||
std::vector<webrtc::VideoStream> CreateEncoderStreams(
|
||||
const webrtc::FieldTrialsView& field_trials,
|
||||
int aWidth, int aHeight,
|
||||
const webrtc::VideoEncoderConfig& aConfig) override;
|
||||
|
||||
|
|
|
@ -301,7 +301,7 @@ class MockCall : public webrtc::Call {
|
|||
|
||||
std::vector<webrtc::VideoStream> CreateEncoderStreams(int width, int height) {
|
||||
return mVideoSendEncoderConfig->video_stream_factory->CreateEncoderStreams(
|
||||
width, height, *mVideoSendEncoderConfig);
|
||||
mUnusedConfig, width, height, *mVideoSendEncoderConfig);
|
||||
}
|
||||
|
||||
virtual const webrtc::FieldTrialsView& trials() const override {
|
||||
|
|
Загрузка…
Ссылка в новой задаче