~diwic/ubuntu/lucid/pulseaudio/bugfixes

« back to all changes in this revision

Viewing changes to src/tests/proplist-test.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2009-05-05 14:18:20 UTC
  • mfrom: (1.2.4 upstream) (1.1.8 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090505141820-rrr2mtdd1jkllvr8
Tags: 1:0.9.15-1ubuntu1
* Merge from unreleased Debian pulseaudio git, remaining changes:
  - epoch (my stupid fault :S)
  - Don't build against, and create jack package. Jack is not in main
  - use linear resampler to work better with lack of PREEMPT in jaunty's
    -generic kernel config, also change buffer size
  - Add alsa configuration files to route alsa applications via pulseaudio
  - Move libasound2-plugins from Recommends to Depends
  - Add pm-utils sleep hook to suspend (and resume) users' pulseaudio
    daemons
  - patch to fix source/sink and suspend-on-idle race
  - Make initscript more informative in the default case of per-user
    sessions
  - create /var/run/pulse, and make restart more robust
  - add status check for system wide pulseaudio instance
  - LSB {Required-*,Should-*} should specify hal instead of dbus,
    since hal is required (and already requires dbus)
  - indicate that the system pulseaudio instance is being started from the init
    script
  - Install more upstream man pages
  - Link to pacat for parec man page
  - check whether pulseaudio is running before preloading the padsp library
  - Add DEB_OPT_FLAG = -O3 as per recommendation from
    pulseaudio-discuss/2007-December/001017.html
  - cache /usr/share/sounds/ubuntu/stereo/ wav files on pulseaudio load
  - disable glitch free (use tsched=0)
  - Generate a PO template on build
  - add special case to disable pulseaudio loading if accessibility/speech
    is being used
  - the sd wrapper script should not load pulseaudio if pulseaudio is being
    used as a system service
  - add a pulseaudio apport hook
  - fix some typos in README.Debian
  - demote paprefs to suggests
  - drop padevchooser(Recommends) and pavucontrol (Suggests)
  - drop libasyncns-dev build dependency, its in universe
* add libudev-dev as a build-dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
  PulseAudio is free software; you can redistribute it and/or modify
5
5
  it under the terms of the GNU Lesser General Public License as published
6
 
  by the Free Software Foundation; either version 2 of the License,
 
6
  by the Free Software Foundation; either version 2.1 of the License,
7
7
  or (at your option) any later version.
8
8
 
9
9
  PulseAudio is distributed in the hope that it will be useful, but
29
29
#include <pulsecore/core-util.h>
30
30
 
31
31
int main(int argc, char*argv[]) {
32
 
    pa_proplist *a, *b;
33
 
    char *s, *t;
 
32
    pa_proplist *a, *b, *c, *d;
 
33
    char *s, *t, *u, *v;
 
34
    const char *text;
34
35
 
35
36
    a = pa_proplist_new();
36
37
    pa_assert_se(pa_proplist_sets(a, PA_PROP_MEDIA_TITLE, "Brandenburgische Konzerte") == 0);
50
51
    s = pa_proplist_to_string(a);
51
52
    t = pa_proplist_to_string(b);
52
53
    printf("---\n%s---\n%s", s, t);
 
54
 
 
55
    c = pa_proplist_from_string(s);
 
56
    u = pa_proplist_to_string(c);
 
57
    pa_assert_se(pa_streq(s, u));
 
58
 
53
59
    pa_xfree(s);
54
60
    pa_xfree(t);
 
61
    pa_xfree(u);
55
62
 
56
63
    pa_proplist_free(a);
57
64
    pa_proplist_free(b);
 
65
    pa_proplist_free(c);
 
66
 
 
67
    text = "  eins = zwei drei = \"\\\"vier\\\"\" fuenf=sechs sieben ='\\a\\c\\h\\t\\'\\\"' neun= hex:0123456789abCDef ";
 
68
 
 
69
    printf("%s\n", text);
 
70
    d = pa_proplist_from_string(text);
 
71
    v = pa_proplist_to_string(d);
 
72
    pa_proplist_free(d);
 
73
    printf("%s\n", v);
 
74
    d = pa_proplist_from_string(v);
 
75
    pa_xfree(v);
 
76
    v = pa_proplist_to_string(d);
 
77
    pa_proplist_free(d);
 
78
    printf("%s\n", v);
 
79
    pa_xfree(v);
58
80
 
59
81
    return 0;
60
82
}