]> git.sesse.net Git - vlc/commitdiff
JACK input support for jack2
authorAdrian Knoth <adi@drcomp.erfurt.thur.de>
Mon, 8 Jun 2009 16:05:29 +0000 (18:05 +0200)
committerChristophe Mutricy <xtophe@videolan.org>
Mon, 4 Jan 2010 22:47:00 +0000 (22:47 +0000)
When you try to capture from JACK, this is only possible with the
"oldstyle" jackd-0.x. If you want to use the newer, SMP-capable jack2,
the VLC inputs cannot be connected:

Cannot connect ports owned by inactive clients: "vlc-input-26611" is not
active
Cannot connect ports owned by inactive clients: "vlc-input-26611" is not
active

Unlike jack1, jack2 expects the process callback function to return 0.

The attached patch fixes this problem. It's been already fixed the same
way in the jack output plugin (see modules/audio_output/jack.c:290).

Taken from Debian bug #532339
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532339)

Signed-off-by: Christophe Mutricy <xtophe@videolan.org>
modules/access/jack.c

index 217b6e4aa0b81b8734fbf0aeabfbc6309dc20f06..1e08c4cebf9f35a1fc0ce9be37e62c6e4ecd8f23 100644 (file)
@@ -444,7 +444,7 @@ int Process( jack_nframes_t i_frames, void *p_arg )
         }
     }
 
-    return 1;
+    return 0;
 }