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:
@@ -475,10 +475,13 @@ AudioMixer::FormatChanged(const media_source &producer,
|
|||||||
|
|
||||||
if (fCore->Settings()->RefuseInputFormatChange()) {
|
if (fCore->Settings()->RefuseInputFormatChange()) {
|
||||||
TRACE("AudioMixer::FormatChanged: input format change refused\n");
|
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
|
// tell core about format change
|
||||||
fCore->Lock();
|
fCore->Lock();
|
||||||
|
|||||||
Reference in New Issue
Block a user