Closed Bug 938070 Opened 11 years ago Closed 11 years ago

[B2G] AudioDeviceModuleImpl::CreatePlatformSpecificObjects() returns -1 because ptrAudioDeviceUtility == NULL

Categories

(Core :: WebRTC: Audio/Video, defect)

x86_64
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28
blocking-b2g 1.3+
Tracking Status
firefox28 --- fixed

People

(Reporter: jhlin, Assigned: jesup)

Details

(Keywords: regression)

Attachments

(1 file)

In the commit for bug 932112, creation of ptrAudioDeviceUtility (http://dxr.mozilla.org/mozilla-central/source/media/webrtc/trunk/webrtc/modules/audio_device/audio_device_impl.cc#299) will be skipped since WEBRTC_GONK is defined (http://dxr.mozilla.org/mozilla-central/source/media/webrtc/trunk/webrtc/modules/audio_device/audio_device_impl.cc#284). This breaks the check later (http://dxr.mozilla.org/mozilla-central/source/media/webrtc/trunk/webrtc/modules/audio_device/audio_device_impl.cc#409). 
Because of it, MediaEngineWebRTC::EnumerateAudioDevices() will fail to get audio device (http://dxr.mozilla.org/mozilla-central/source/content/media/webrtc/MediaEngineWebRTC.cpp#291) for gUM.
Moving the creation of ptrAudioDeviceUtility out of '#if !defined(WEBRTC_GONK)' makes it work again.(See patch in attachment)
Attachment #831426 - Flags: review?(rjesup)
Attachment #831426 - Flags: review?(rjesup) → review+
https://hg.mozilla.org/mozilla-central/rev/fb9f3b754d03
Assignee: nobody → rjesup
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
If I'm reading this correctly, this sounds like this is a regression for gUM audio that will prevent retrieval for the microphone stream. In that case, this sounds like a blocker.
blocking-b2g: 1.3? → 1.3+
Keywords: regression
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: