openbsd-ports/x11/vlc/patches/patch-modules_audio_output_jack_c
jakemsr 0ba235ecbe - use wxSlider instead of hacking wxGuage for the volume controller.
from vlc subversion via Alexey Suslikov.

- use jack_client_connect() instead of jack_client_new() so multiple
instances of vlc can connect to jackd concurrently.  problem reported
by Alexey Suslikov.
2008-05-11 18:12:40 +00:00

21 lines
839 B
Plaintext

$OpenBSD: patch-modules_audio_output_jack_c,v 1.1 2008/05/11 18:12:41 jakemsr Exp $
--- modules/audio_output/jack.c.orig Tue May 6 14:50:12 2008
+++ modules/audio_output/jack.c Tue May 6 14:55:39 2008
@@ -77,6 +77,7 @@ static int Open( vlc_object_t *p_this )
unsigned int i, i_in_ports;
const char **pp_in_ports;
struct aout_sys_t * p_sys;
+ jack_status_t status;
/* Allocate structure */
p_sys = malloc( sizeof( aout_sys_t ) );
@@ -88,7 +89,7 @@ static int Open( vlc_object_t *p_this )
p_aout->output.p_sys = p_sys;
/* Connect to the JACK server */
- p_sys->p_jack_client = jack_client_new( "vlc" );
+ p_sys->p_jack_client = jack_client_open( "vlc", JackNullOption, &status );
if( p_sys->p_jack_client == NULL )
{
msg_Err( p_aout, "failed to connect to JACK server" );