Skip to content
  • tommi's avatar
    Fix getUserMedia so that failure is reported for invalid audio sources. · 5d0910b9
    tommi authored
    This is a reland:
    * Original CL https://codereview.chromium.org/2623443002/
    * The originally reviewed CL is in the first patch.
    * A fix for the issue discovered on the "Win7 Tests (dbg)(1)" bot is in the second patch set.
    
    This changes getUserMedia to wait for initialization of local audio sources before issuing the completion callback (either success or failure). Previously, if an error occurs between attempting to start a local audio source and the render side OnStreamCreated callback, getUserMedia would report successful completion with an audio track but no audio would actually be delivered for that track.
    
    BUG=679210
    CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
    
    Review-Url: https://codereview.chromium.org/2622073003
    Cr-Commit-Position: refs/heads/master@{#443660}
    5d0910b9