diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-10-13 23:24:54 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-10-13 23:24:54 +0000 |
commit | 40be2c2c4cca56c05d6c932539f6f49a64ee60ef (patch) | |
tree | dd8305e0b49fe5b99ea6d8f6b4835f1d8f3aecaa | |
parent | b8098190699937b2d14e8abcb4b16f0a41b20d49 (diff) | |
download | xine-lib-40be2c2c4cca56c05d6c932539f6f49a64ee60ef.tar.gz xine-lib-40be2c2c4cca56c05d6c932539f6f49a64ee60ef.tar.bz2 |
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
-rw-r--r-- | src/audio_out/audio_pulse_out.c | 7 |
1 files 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); |