small bugfix: access error while randoming in songmenu. i don't really know why this happens. and i don't really know why this fix helps. but i know that there is another bug somewhere. if you click rapidly on the middle mouse button in the song menu, the game will crash after some seconds.

This commit is contained in:
Alexander Eckart committed 2013-04-26 18:30:00 +02:00
1 parent 242a177eb8
commit 5e9eabbc9c
1 file changed
+5 -3
+5 -3
View File
@@ -26,9 +26,10 @@ namespace Vocaluxe.Lib.Sound
class CGstreamerAudio : IPlayback
{
//static float LastPosition;
private CGstreamerAudioWrapper.LogCallback _LogCallback;
#region log
private static void _LogHandler(string text)
private void _LogHandler(string text)
{
CLog.LogError(text);
}
@@ -36,9 +37,10 @@ namespace Vocaluxe.Lib.Sound
public CGstreamerAudio()
{
_LogCallback = _LogHandler;
//Is this really needed? CodaAnalyzer complains about it...
//GC.SuppressFinalize(Log);
CGstreamerAudioWrapper.SetLogCallback(_LogHandler);
//GC.SuppressFinalize(_LogCallback);
CGstreamerAudioWrapper.SetLogCallback(_LogCallback);
}
public bool Init()