[Scummvm-cvs-logs] SF.net SVN: scummvm: [24948] scummvm/trunk/engines/touche/midi.cpp

cyx at users.sourceforge.net cyx at users.sourceforge.net
Sat Dec 30 00:43:41 CET 2006


Revision: 24948
          http://scummvm.svn.sourceforge.net/scummvm/?rev=24948&view=rev
Author:   cyx
Date:     2006-12-29 15:43:36 -0800 (Fri, 29 Dec 2006)

Log Message:
-----------
minor simplification

Modified Paths:
--------------
    scummvm/trunk/engines/touche/midi.cpp

Modified: scummvm/trunk/engines/touche/midi.cpp
===================================================================
--- scummvm/trunk/engines/touche/midi.cpp	2006-12-29 00:03:03 UTC (rev 24947)
+++ scummvm/trunk/engines/touche/midi.cpp	2006-12-29 23:43:36 UTC (rev 24948)
@@ -101,11 +101,9 @@
 }
 
 void MidiPlayer::close() {
-	_mutex.lock();
-	_driver->setTimerCallback(NULL, NULL);
-	_mutex.unlock();
 	stop();
 	_mutex.lock();
+	_driver->setTimerCallback(NULL, NULL);
 	_driver->close();
 	_driver = 0;
 	_parser->setMidiDriver(NULL);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list