[SCM] jack-capture/master: Add debian/patches/04-freewheel_mode_fix.patch patch to fix recording when in freewheel mode; thanks to Filipe Lopes for the patch!

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Wed Jan 26 23:06:00 UTC 2011


The following commit has been merged in the master branch:
commit 91d1de085e179581fd7f191e6d22d6901ed5a0a8
Author: Alessio Treglia <alessio at debian.org>
Date:   Thu Jan 27 00:04:46 2011 +0100

    Add debian/patches/04-freewheel_mode_fix.patch patch to fix recording when in freewheel mode; thanks to Filipe Lopes for the patch!

diff --git a/debian/patches/04-freewheel_mode_fix.patch b/debian/patches/04-freewheel_mode_fix.patch
new file mode 100644
index 0000000..a4d8861
--- /dev/null
+++ b/debian/patches/04-freewheel_mode_fix.patch
@@ -0,0 +1,43 @@
+Description: Fix recording when in freewheel mode.
+Author: Filipe Lopes <falktx at gmail.com>
+Acked-by: Alessio Treglia <alessio at debian.org>
+Forwarded: yes
+---
+ jack_capture.c |   12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+--- jack-capture.orig/jack_capture.c
++++ jack-capture/jack_capture.c
+@@ -129,6 +129,8 @@ static bool jack_has_been_shut_down=fals
+ static int64_t unreported_overruns=0;
+ static int total_overruns=0;
+ 
++volatile int freewheel_mode=0;
++
+ 
+ /* Disk thread */
+ #if HAVE_LAME
+@@ -1505,7 +1507,13 @@ static void stop_connection_thread(void)
+ }
+ 
+ static int graphordercallback(void *arg){
+-  wake_up_connection_thread();
++  if (!freewheel_mode)
++    wake_up_connection_thread();
++  return 0;
++}
++
++static int freewheelcallback(int starting, void *arg){
++  freewheel_mode = starting;
+   return 0;
+ }
+ 
+@@ -1825,6 +1833,8 @@ void init_various(void){
+ 
+     jack_set_graph_order_callback(client,graphordercallback,NULL);
+ 
++    jack_set_freewheel_callback(client,freewheelcallback,NULL);
++
+     if (jack_activate(client)) {
+       fprintf (stderr,"\nCan not activate client");
+       exit(-2);
diff --git a/debian/patches/series b/debian/patches/series
index 0fcb607..c960b90 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 01-makefile-prefix.patch
 02-makefile-compile-option.patch
 03-replace_xdialog.patch
+04-freewheel_mode_fix.patch

-- 
jack-capture packaging



More information about the pkg-multimedia-commits mailing list