Skip to content

Commit 545653b

Browse files
gutjeicloudwebrtc
andauthored
fix CreateAudioSource when source type is kCustom (#120)
Co-authored-by: CloudWebRTC <[email protected]>
1 parent 59069e0 commit 545653b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rtc_peerconnection_factory_impl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ scoped_refptr<RTCAudioSource> RTCPeerConnectionFactoryImpl::CreateAudioSource(
206206
const string audio_source_label, RTCAudioSource::SourceType source_type) {
207207
auto options = webrtc::AudioOptions();
208208
webrtc::scoped_refptr<libwebrtc::LocalAudioSource> rtc_source_track =
209-
CreateAudioSourceWithOptions(&options);
209+
CreateAudioSourceWithOptions(&options, source_type == RTCAudioSource::SourceType::kCustom);
210210
scoped_refptr<RTCAudioSourceImpl> source = scoped_refptr<RTCAudioSourceImpl>(
211211
new RefCountedObject<RTCAudioSourceImpl>(rtc_source_track, source_type));
212212
return source;

0 commit comments

Comments
 (0)