Commit 70a23d61 authored by Avuton Olrich's avatar Avuton Olrich

And a fix for the warnings in the last patch for JACK

git-svn-id: https://svn.musicpd.org/mpd/trunk@5192 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 43e2981f
......@@ -203,7 +203,7 @@ static int jack_testDefault(void)
static int connect_jack(AudioOutput *audioOutput)
{
JackData *jd = audioOutput->data;
const char **jports;
char **jports;
char *port_name;
if ( (jd->client = jack_client_new(name)) == NULL ) {
......@@ -239,7 +239,8 @@ static int connect_jack(AudioOutput *audioOutput)
}
/* hay que buscar que hay */
if ( !output_ports[1] && (jports = jack_get_ports(jd->client, NULL, NULL,
if ( !output_ports[1]
&& (jports = (char **)jack_get_ports(jd->client, NULL, NULL,
JackPortIsPhysical|
JackPortIsInput)) ) {
output_ports[0] = jports[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment