From 40be2c2c4cca56c05d6c932539f6f49a64ee60ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Fri, 13 Oct 2006 23:24:54 +0000 Subject: Use __progname to pass the client name to pulseaudio, this way xine, Amarok and Kaffeine won't simply report "xine" as name and be undistinguished. CVS patchset: 8341 CVS date: 2006/10/13 23:24:54 --- src/audio_out/audio_pulse_out.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/audio_out/audio_pulse_out.c b/src/audio_out/audio_pulse_out.c index bd2d823ae..ba3c2d79e 100644 --- a/src/audio_out/audio_pulse_out.c +++ b/src/audio_out/audio_pulse_out.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_pulse_out.c,v 1.3 2006/09/08 19:47:56 miguelfreitas Exp $ + * $Id: audio_pulse_out.c,v 1.4 2006/10/13 23:24:54 dgp85 Exp $ * * ao plugin for pulseaudio (rename of polypaudio): * http://0pointer.de/lennart/projects/pulsaudio/ @@ -54,6 +54,9 @@ #define GAP_TOLERANCE AO_MAX_GAP +/* CHECKME: should this be conditional on autotools? */ +extern const char *__progname; + typedef struct pulse_driver_s { ao_driver_t ao_driver; @@ -189,7 +192,7 @@ static int ao_pulse_open(ao_driver_t *this_gen, this->mainloop = pa_mainloop_new(); assert(this->mainloop); - this->context = pa_context_new(pa_mainloop_get_api(this->mainloop), "xine"); + this->context = pa_context_new(pa_mainloop_get_api(this->mainloop), __progname); assert(this->context); pa_context_connect(this->context, this->host, 1, NULL); -- cgit v1.2.3