From 88dd4d229296497189518878bfa794dc9b25f815 Mon Sep 17 00:00:00 2001 From: Stephane Letz Date: Wed, 21 Mar 2012 10:34:04 +0100 Subject: [PATCH] Correct error codes. --- common/JackAPI.cpp | 2 +- common/JackFrameTimer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/JackAPI.cpp b/common/JackAPI.cpp index 6db5e34b..fe3cee76 100644 --- a/common/JackAPI.cpp +++ b/common/JackAPI.cpp @@ -1385,7 +1385,7 @@ LIB_EXPORT int jack_get_cycle_times(const jack_client_t *client, control->ReadFrameTime(&timer); return timer.GetCycleTimes(current_frames, current_usecs, next_usecs, period_usecs); } else { - return 1; + return -1; } } diff --git a/common/JackFrameTimer.cpp b/common/JackFrameTimer.cpp index 2c153b03..a3bd2b15 100644 --- a/common/JackFrameTimer.cpp +++ b/common/JackFrameTimer.cpp @@ -98,7 +98,7 @@ int JackTimer::GetCycleTimes(jack_nframes_t* current_frames, jack_time_t* curren *period_usecs = fPeriodUsecs; return 0; } else { - return 1; + return -1; } }