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

« back to all changes in this revision

Viewing changes to src/pulsecore/core-util.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich, Daniel T Chen, Luke Yelavich
  • Date: 2009-09-11 09:24:39 UTC
  • mfrom: (1.14.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090911092439-7dixbvy6r30alrv8
Tags: 1:0.9.16-0ubuntu1
[ Daniel T Chen ]
* debian/patches/0090-use-volume-ignore-for-analog-output.patch:
  + Realign volume control behaviour with existing Ubuntu releases,
    i.e., disable volume = merge and use volume = ignore for
    analog output

[ Luke Yelavich ]
* New upstream release
* debian/patches/0057-introspect-version-fixes.patch (LP: #426210),
  debian/patches/0056-alsa-rework.patch,
  debian/patches/0055-llvm-clang-analyzer-fixes.patch,
  0054-volume-libpulse-backported-fixes.patch,
  0053-add-input-sources.patch,
  debian/patches/0052-disable-cpu-limit.patch: Dropped, all applied upstream
* debian/patches/0051-reduce-lib-linking.patch: Drop, since we are not going
  to be doing bi-arch pulseaudio packages for karmic

Show diffs side-by-side

added added

removed removed

Lines of Context:
591
591
    sp.sched_priority = rtprio;
592
592
 
593
593
#ifdef SCHED_RESET_ON_FORK
594
 
    if ((r = pthread_setschedparam(pthread_self(), SCHED_RR|SCHED_RESET_ON_FORK, &sp)) == 0) {
 
594
    if (pthread_setschedparam(pthread_self(), SCHED_RR|SCHED_RESET_ON_FORK, &sp) == 0) {
595
595
        pa_log_debug("SCHED_RR|SCHED_RESET_ON_FORK worked.");
596
596
        return 0;
597
597
    }
598
598
#endif
599
599
 
600
 
    if ((r = pthread_setschedparam(pthread_self(), SCHED_RR, &sp)) == 0) {
 
600
    if (pthread_setschedparam(pthread_self(), SCHED_RR, &sp) == 0) {
601
601
        pa_log_debug("SCHED_RR worked.");
602
602
        return 0;
603
603
    }
786
786
/* Try to parse a boolean string value.*/
787
787
int pa_parse_boolean(const char *v) {
788
788
    const char *expr;
789
 
    int r;
790
789
    pa_assert(v);
791
790
 
792
791
    /* First we check language independant */
798
797
    /* And then we check language dependant */
799
798
    if ((expr = nl_langinfo(YESEXPR)))
800
799
        if (expr[0])
801
 
            if ((r = pa_match(expr, v)) > 0)
 
800
            if (pa_match(expr, v) > 0)
802
801
                return 1;
803
802
 
804
803
    if ((expr = nl_langinfo(NOEXPR)))
805
804
        if (expr[0])
806
 
            if ((r = pa_match(expr, v)) > 0)
 
805
            if (pa_match(expr, v) > 0)
807
806
                return 0;
808
807
 
809
808
    errno = EINVAL;
1195
1194
 
1196
1195
/* Create a temporary lock file and lock it. */
1197
1196
int pa_lock_lockfile(const char *fn) {
1198
 
    int fd = -1;
 
1197
    int fd;
1199
1198
    pa_assert(fn);
1200
1199
 
1201
1200
    for (;;) {
1238
1237
            fd = -1;
1239
1238
            goto fail;
1240
1239
        }
1241
 
 
1242
 
        fd = -1;
1243
1240
    }
1244
1241
 
1245
1242
    return fd;
2407
2404
        p[i++] = except;
2408
2405
 
2409
2406
        while ((sig = va_arg(ap, int)) >= 0)
2410
 
            sig = p[i++];
 
2407
            p[i++] = sig;
2411
2408
    }
2412
2409
    p[i] = -1;
2413
2410