Skip to content
Browse files

[osx] fixed error in CCoreAudioHardware::FormatsList, which is not ac…

…tually used anywhere :)
  • Loading branch information...
1 parent 0df13c9 commit 1145deba9e5c7d56049bedcc690d24f57c35db42 @davilla davilla committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioHardware.cpp
View
2 xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioHardware.cpp
@@ -95,7 +95,7 @@ AudioStreamBasicDescription* CCoreAudioHardware::FormatsList(AudioStreamID strea
}
// Add a terminating ID:
- list[listSize/sizeof(AudioStreamID)].mFormatID = 0;
+ list[listSize/sizeof(AudioStreamBasicDescription)].mFormatID = 0;
return list;
}

2 comments on commit 1145deb

@Memphiz
Team Kodi member

If its not used we could also just remove it no?

@davilla

That's the second step... remove all functions that are not used. :) This was something I discovered in development on CoreAudioSink where the code IS used. :)

Please sign in to comment.
Something went wrong with that request. Please try again.