Use jack_client_open instead of deprecated jack_client_new.
diff mbox

Message ID BLU0-SMTP43AF44544297B1681F68AE27C0@phx.gbl
State Accepted
Headers show

Commit Message

Maarten Baert March 18, 2014, 4:55 p.m. UTC
Signed-off-by: Maarten Baert <maarten-baert@hotmail.com>
---
 jack/pcm_jack.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Takashi Iwai March 19, 2014, 3:57 p.m. UTC | #1
At Tue, 18 Mar 2014 17:55:14 +0100,
Maarten Baert wrote:
> 
> Signed-off-by: Maarten Baert <maarten-baert@hotmail.com>

Thanks, applied.

I didn't fix this in the past because of the possible build issue with
the old jack, but it should be old enough to fix.  Once when we get a
bug report, we can still revert it, or make it conditional via
configure script.


Takashi

> ---
>  jack/pcm_jack.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/jack/pcm_jack.c b/jack/pcm_jack.c
> index 4213708..7a8b24d 100644
> --- a/jack/pcm_jack.c
> +++ b/jack/pcm_jack.c
> @@ -370,7 +370,7 @@ static int snd_pcm_jack_open(snd_pcm_t **pcmp, const char *name,
>  			__func__, jack_client_name, (int)strlen(jack_client_name));
>  	}
>  
> -	jack->client = jack_client_new(jack_client_name);
> +	jack->client = jack_client_open(jack_client_name, JackNoStartServer, NULL);
>  
>  	if (jack->client == 0) {
>  		snd_pcm_jack_free(jack);
> -- 
> 1.9.0
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>

Patch
diff mbox

diff --git a/jack/pcm_jack.c b/jack/pcm_jack.c
index 4213708..7a8b24d 100644
--- a/jack/pcm_jack.c
+++ b/jack/pcm_jack.c
@@ -370,7 +370,7 @@  static int snd_pcm_jack_open(snd_pcm_t **pcmp, const char *name,
 			__func__, jack_client_name, (int)strlen(jack_client_name));
 	}
 
-	jack->client = jack_client_new(jack_client_name);
+	jack->client = jack_client_open(jack_client_name, JackNoStartServer, NULL);
 
 	if (jack->client == 0) {
 		snd_pcm_jack_free(jack);