X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/0c1d42ad03f7e49b23755209f5b1f295cbe21f6b..8a886602880a1a0b65de4e062d4be178dee4d181:/server/play.c diff --git a/server/play.c b/server/play.c index a1384f8..96e4a50 100644 --- a/server/play.c +++ b/server/play.c @@ -1,6 +1,6 @@ /* * This file is part of DisOrder. - * Copyright (C) 2004-2009 Richard Kettlewell + * Copyright (C) 2004-2012 Richard Kettlewell * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -340,8 +340,6 @@ static int start(ev_source *ev, static int start_child(struct queue_entry *q, const struct pbgc_params *params, void attribute((unused)) *bgdata) { - int n; - /* Play the track */ play_track(q->pl, params->argv, params->argc, @@ -424,7 +422,7 @@ static int prepare_child(struct queue_entry *q, memset(&addr, 0, sizeof addr); addr.sun_family = AF_UNIX; snprintf(addr.sun_path, sizeof addr.sun_path, - "%s/speaker/socket", config->home); + "%s/private/speaker", config->home); int sfd = xsocket(PF_UNIX, SOCK_STREAM, 0); if(connect(sfd, (const struct sockaddr *)&addr, sizeof addr) < 0) disorder_fatal(errno, "connecting to %s", addr.sun_path);