~diwic/ubuntu/lucid/pulseaudio/bugfixes

« back to all changes in this revision

Viewing changes to src/pulse/client-conf-x11.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2008-11-04 15:46:00 UTC
  • mfrom: (1.2.1 upstream) (1.1.6 lenny)
  • Revision ID: james.westby@ubuntu.com-20081104154600-hlzknpcazaam0nxm
Tags: 0.9.13-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Don't build against, and create jack package. Jack is not in main.
  - Remove --disable-per-user-esound-socket from configure flags, as we still
    want per user esound sockets.
  - Remove stop links from rc0 and rc6.
  - Change default resample algorithm and bubffer size.
  - Add alsa configuration files to route alsa applications via pulseaudio.
  - Move libasound2-plugins from Recommends to Depends.
* debian/pulseaudio.preinst: When upgrading from intrepid, remove
  /etc/X11/Xsession.d/70pulseaudio, as this was used to minimize a race
  condition when starting GNOME in intrepid. This race should not exist in
  jaunty once libcanberra is built to use pulseaudio as a backend.
* Do not spawn a pulseaudio server if clients fail to find a running server.
* Remove explicit version dependency for libspeex-dev to allow the package
  to be built for now.
* Regenerate autotools files to work with Ubuntu's newer libtool/libltdl.
* debian/control: libpulsecore5 -> libpulsecore8 to match the library
  soname.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: client-conf-x11.c 1971 2007-10-28 19:13:50Z lennart $ */
2
 
 
3
1
/***
4
2
  This file is part of PulseAudio.
5
3
 
31
29
#include <X11/Xatom.h>
32
30
 
33
31
#include <pulse/xmalloc.h>
 
32
#include <pulse/i18n.h>
34
33
 
35
34
#include <pulsecore/x11prop.h>
36
35
#include <pulsecore/log.h>
46
45
 
47
46
    pa_assert(c);
48
47
 
49
 
    if (!dname && (!(dname = getenv("DISPLAY")) || *dname == '\0'))
 
48
    if (!dname && !(dname = getenv("DISPLAY")))
 
49
        goto finish;
 
50
 
 
51
    if (*dname == 0)
50
52
        goto finish;
51
53
 
52
54
    if (!(d = XOpenDisplay(dname))) {
53
 
        pa_log("XOpenDisplay() failed");
 
55
        pa_log(_("XOpenDisplay() failed"));
54
56
        goto finish;
55
57
    }
56
58
 
73
75
        uint8_t cookie[PA_NATIVE_COOKIE_LENGTH];
74
76
 
75
77
        if (pa_parsehex(t, cookie, sizeof(cookie)) != sizeof(cookie)) {
76
 
            pa_log("failed to parse cookie data");
 
78
            pa_log(_("Failed to parse cookie data"));
77
79
            goto finish;
78
80
        }
79
81
 
80
82
        pa_assert(sizeof(cookie) == sizeof(c->cookie));
81
83
        memcpy(c->cookie, cookie, sizeof(cookie));
82
84
 
83
 
        c->cookie_valid = 1;
 
85
        c->cookie_valid = TRUE;
84
86
 
85
87
        pa_xfree(c->cookie_file);
86
88
        c->cookie_file = NULL;