Commit b360ad06 authored by Stephane Letz's avatar Stephane Letz
Browse files

Make JackNetInterface::FinishRecv more robust.

parent 693c2ffc
......@@ -693,6 +693,8 @@ struct JackNetExtSlave : public JackNetSlaveInterface, public JackRunnableInterf
// By default fFrames is fPeriodSize
fFrames = fParams.fPeriodSize;
SessionParamsDisplay(&fParams);
AllocPorts();
return 0;
......
......@@ -227,7 +227,11 @@ namespace Jack
int JackNetInterface::FinishRecv(NetAudioBuffer* buffer)
{
buffer->RenderToJackPorts(fRxHeader.fFrames);
if (buffer) {
buffer->RenderToJackPorts(fRxHeader.fFrames);
} else {
jack_error("FinishRecv with null buffer...");
}
return DATA_PACKET_ERROR;
}
......
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