Do not crash when a node tries to change the format during runtime, as long as

this is actually not implemented.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33679 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2009-10-20 14:14:00 +00:00
parent fa1a1c2980
commit 78a6097283
@@ -475,10 +475,13 @@ AudioMixer::FormatChanged(const media_source &producer,
if (fCore->Settings()->RefuseInputFormatChange()) {
TRACE("AudioMixer::FormatChanged: input format change refused\n");
return B_ERROR;
return B_NOT_ALLOWED;
}
// XXX we should not apply the format change at this point
// TODO: We should not apply the format change at this point
// TODO: At the moment, this is not implemented at the moment and will just
// crash the media_server.
return B_NOT_SUPPORTED;
// tell core about format change
fCore->Lock();