Skip to content
This repository
Browse code

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

…tually used anywhere :)
  • Loading branch information...
commit 1145deba9e5c7d56049bedcc690d24f57c35db42 1 parent 0df13c9
authored February 10, 2013
2  xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioHardware.cpp
@@ -95,7 +95,7 @@ AudioStreamBasicDescription* CCoreAudioHardware::FormatsList(AudioStreamID strea
95 95
   }
96 96
 
97 97
   // Add a terminating ID:
98  
-  list[listSize/sizeof(AudioStreamID)].mFormatID = 0;
  98
+  list[listSize/sizeof(AudioStreamBasicDescription)].mFormatID = 0;
99 99
 
100 100
   return list;
101 101
 }

2 notes on commit 1145deb

Memphiz
Owner

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

davilla
Collaborator

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.