Some more assert() debugging

This commit is contained in:
Robin Gareus 2017-08-03 23:37:38 +02:00
parent 1937c74191
commit 6b5d374352
4 changed files with 10 additions and 3 deletions

View file

@ -1569,7 +1569,9 @@ CoreAudioBackend::n_physical_inputs () const
void*
CoreAudioBackend::get_buffer (PortEngine::PortHandle port, pframes_t nframes)
{
if (!port || !valid_port (port)) return NULL;
assert (port);
assert (valid_port (port));
if (!port || !valid_port (port)) return NULL; // XXX remove me
return static_cast<CoreBackendPort*>(port)->get_buffer (nframes);
}