Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[osx] always zero AudioStreamBasicDescription vars

  • Loading branch information...
commit f2fd68ed03454885ca1b70c39f94cac51509d5ae 1 parent c44c6d3
@davilla davilla authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioGraph.cpp
View
14 xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioGraph.cpp
@@ -54,9 +54,9 @@ CCoreAudioGraph::~CCoreAudioGraph()
bool CCoreAudioGraph::Open(ICoreAudioSource *pSource, AEAudioFormat &format,
AudioDeviceID deviceId, bool allowMixing, AudioChannelLayoutTag layoutTag)
{
- AudioStreamBasicDescription fmt;
- AudioStreamBasicDescription inputFormat;
- AudioStreamBasicDescription outputFormat;
+ AudioStreamBasicDescription fmt = {0};
+ AudioStreamBasicDescription inputFormat = {0};
+ AudioStreamBasicDescription outputFormat = {0};
m_deviceId = deviceId;
m_allowMixing = allowMixing;
@@ -476,9 +476,9 @@ CAUOutputDevice *CCoreAudioGraph::CreateUnit(AEAudioFormat &format)
if (!m_audioUnit || !m_mixerUnit)
return NULL;
- AudioStreamBasicDescription fmt;
- AudioStreamBasicDescription inputFormat;
- AudioStreamBasicDescription outputFormat;
+ AudioStreamBasicDescription fmt = {0};
+ AudioStreamBasicDescription inputFormat = {0};
+ AudioStreamBasicDescription outputFormat = {0};
int busNumber = GetFreeBus();
if (busNumber == INVALID_BUS)
@@ -566,7 +566,7 @@ int CCoreAudioGraph::GetMixerChannelOffset(int busNumber)
return 0;
int offset = 0;
- AudioStreamBasicDescription fmt;
+ AudioStreamBasicDescription fmt = {0};
for (int i = 0; i < busNumber; i++)
{
Please sign in to comment.
Something went wrong with that request. Please try again.