Correct build and runtime issues with jackd2
[fmit.git] / debian / patches / jackd2.patch
diff --git a/debian/patches/jackd2.patch b/debian/patches/jackd2.patch
new file mode 100644 (file)
index 0000000..ea60374
--- /dev/null
@@ -0,0 +1,18 @@
+The use of jack_error_callback in current fmit code is... erm, useless,
+as it just says "Use the default", which is also used if nothing is
+specified.
+
+Patch from Adrian Knoth <adi@drcomp.erfurt.thur.de>.
+
+diff --git a/src/CaptureThread.cpp b/src/CaptureThread.cpp
+index 5c6f86b..6eae124 100644
+--- a/src/CaptureThread.cpp
++++ b/src/CaptureThread.cpp
+@@ -877,7 +877,6 @@ void CaptureThreadImplJACK::capture_init()
+       jack_set_process_callback(m_jack_client, JackProcess, (void*)this);
+       jack_on_shutdown(m_jack_client, JackShutdown, (void*)this);
+-      jack_set_error_function(jack_error_callback);
+       jack_set_sample_rate_callback(m_jack_client, JackSampleRate, (void*)this);
+       int err=0;