Browse Source

fixed potential copy&paste style bugs (#317)

tags/v1.9.13
m-grabner Stéphane Letz 7 years ago
parent
commit
f6f7f11b38
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      common/JackAudioDriver.cpp
  2. +2
    -2
      common/JackClient.cpp

+ 1
- 1
common/JackAudioDriver.cpp View File

@@ -371,7 +371,7 @@ jack_default_audio_sample_t* JackAudioDriver::GetOutputBuffer(int port_index)

jack_default_audio_sample_t* JackAudioDriver::GetMonitorBuffer(int port_index)
{
return fPlaybackPortList[port_index]
return fMonitorPortList[port_index]
? (jack_default_audio_sample_t*)fGraphManager->GetBuffer(fMonitorPortList[port_index], fEngineControl->fBufferSize)
: NULL;
}


+ 2
- 2
common/JackClient.cpp View File

@@ -723,7 +723,7 @@ int JackClient::PortConnect(const char* src, const char* dst)
return -1;
}
if (strlen(dst) >= REAL_JACK_PORT_NAME_SIZE) {
jack_error("\"%s\" is too long to be used as a JACK port name.\n", src);
jack_error("\"%s\" is too long to be used as a JACK port name.\n", dst);
return -1;
}
int result = -1;
@@ -739,7 +739,7 @@ int JackClient::PortDisconnect(const char* src, const char* dst)
return -1;
}
if (strlen(dst) >= REAL_JACK_PORT_NAME_SIZE) {
jack_error("\"%s\" is too long to be used as a JACK port name.\n", src);
jack_error("\"%s\" is too long to be used as a JACK port name.\n", dst);
return -1;
}
int result = -1;


Loading…
Cancel
Save