~ubuntu-branches/ubuntu/karmic/pulseaudio/karmic-updates

« back to all changes in this revision

Viewing changes to src/utils/padsp.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2009-08-05 12:02:18 UTC
  • Revision ID: james.westby@ubuntu.com-20090805120218-202a8uz8lfjw1vy4
Tags: 1:0.9.16~test4-0ubuntu1
* New upstream release
* debian/patches/0008-clean-out-old-files.patch: Dropped, applied upstream
* debian/control: Fix pulseaudio-module-rygel-media-server debug package name

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
#include <pulse/pulseaudio.h>
54
54
#include <pulse/gccmacro.h>
55
55
#include <pulsecore/llist.h>
 
56
#include <pulsecore/core-util.h>
56
57
 
57
58
/* On some systems SIOCINQ isn't defined, but FIONREAD is just an alias */
58
59
#if !defined(SIOCINQ) && defined(FIONREAD)
459
460
}
460
461
 
461
462
static const char *client_name(char *buf, size_t n) {
462
 
    char p[PATH_MAX];
 
463
    char *p;
463
464
    const char *e;
464
465
 
465
466
    if ((e = getenv("PADSP_CLIENT_NAME")))
466
467
        return e;
467
468
 
468
 
    if (pa_get_binary_name(p, sizeof(p)))
 
469
    if ((p = pa_get_binary_name_malloc())) {
469
470
        snprintf(buf, n, "OSS Emulation[%s]", p);
470
 
    else
 
471
        pa_xfree(p);
 
472
    } else
471
473
        snprintf(buf, n, "OSS");
472
474
 
473
475
    return buf;