diff --git a/content/media/webrtc/MediaEngineWebRTC.cpp b/content/media/webrtc/MediaEngineWebRTC.cpp index 421c6417079..3e09793d78e 100644 --- a/content/media/webrtc/MediaEngineWebRTC.cpp +++ b/content/media/webrtc/MediaEngineWebRTC.cpp @@ -112,7 +112,7 @@ MediaEngineWebRTC::EnumerateVideoDevices(dom::MediaSourceEnum aMediaSource, // We've already seen this device, just append. aVSources->AppendElement(vSource.get()); } else { - vSource = new MediaEngineWebRTCVideoSource(i, mediaSourceType); + vSource = new MediaEngineWebRTCVideoSource(i, aMediaSource); mVideoSources.Put(uuid, vSource); // Hashtable takes ownership. aVSources->AppendElement(vSource); }