Commit 89952a39 authored by sletz's avatar sletz
Browse files

Fix in JackClient::Error(): when RT thread is failing and calling Shutdown,...

Fix in JackClient::Error(): when RT thread is failing and calling Shutdown, Shutdown was not desactivating the client correctly.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1848 0c269be4-1314-0410-8aa9-9f06e86f4224
parent c7a20bb5
......@@ -17,6 +17,10 @@ Tim Blechmann
Jackdmp changes log
---------------------------
2008-02-12 Stephane Letz <letz@grame.fr>
* Fix in JackClient::Error(): when RT thread is failing and calling Shutdown, Shutdown was not desactivating the client correctly. Thanks Esben Stien for helping finding this bug.
2008-02-11 Stephane Letz <letz@grame.fr>
* Use SetAlias for port naming. Use jackd midi port naming scheme.
......
......@@ -411,8 +411,8 @@ inline void JackClient::SignalSync()
inline int JackClient::End()
{
JackLog("JackClient::Execute end name = %s\n", GetClientControl()->fName);
int result;
// Hum... not sure about this, the following "close" code is called in the RT thread...
int result;
fThread->DropRealTime();
GetClientControl()->fActive = false;
fChannel->ClientDeactivate(GetClientControl()->fRefNum, &result);
......@@ -424,7 +424,10 @@ inline int JackClient::Error()
{
jack_error("JackClient::Execute error name = %s", GetClientControl()->fName);
// Hum... not sure about this, the following "close" code is called in the RT thread...
int result;
fThread->DropRealTime();
GetClientControl()->fActive = false;
fChannel->ClientDeactivate(GetClientControl()->fRefNum, &result);
ShutDown();
fThread->Terminate();
return 0; // Never reached
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment