From 37dd87519907f16b0dc4a52514c719267f7c5ac6 Mon Sep 17 00:00:00 2001 From: Bryce Van Dyk Date: Mon, 22 Jan 2018 13:20:29 -0500 Subject: [PATCH] Bug 1432869 - Update usage of cubeb_stream_params to set newly exposed prefs member. r=achronop The changes to the cubeb API mean that the new prefs member on cubeb_stream_params should be explicitly set. This changeset does so. MozReview-Commit-ID: 1hwjLTriaBP --HG-- extra : rebase_source : f32c4a0a945ed7a048ca40c7286024da1fb93473 --- dom/media/AudioStream.cpp | 1 + dom/media/GraphDriver.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/dom/media/AudioStream.cpp b/dom/media/AudioStream.cpp index ce6fb2f3bc8d..dcabdb877c36 100644 --- a/dom/media/AudioStream.cpp +++ b/dom/media/AudioStream.cpp @@ -350,6 +350,7 @@ AudioStream::Init(uint32_t aNumChannels, uint32_t aChannelMap, uint32_t aRate) params.channels = mOutChannels; params.layout = CubebUtils::ConvertChannelMapToCubebLayout(aChannelMap); params.format = ToCubebFormat::value; + params.prefs = CUBEB_STREAM_PREF_NONE; mAudioClock.Init(aRate); diff --git a/dom/media/GraphDriver.cpp b/dom/media/GraphDriver.cpp index f37568e21816..f39f51913c04 100644 --- a/dom/media/GraphDriver.cpp +++ b/dom/media/GraphDriver.cpp @@ -627,6 +627,7 @@ AudioCallbackDriver::Init() output.channels = mOutputChannels; output.layout = CubebUtils::GetPreferredChannelLayoutOrSMPTE(cubebContext, mOutputChannels); + output.prefs = CUBEB_STREAM_PREF_NONE; Maybe latencyPref = CubebUtils::GetCubebMSGLatencyInFrames(); if (latencyPref) {