~ubuntu-branches/ubuntu/oneiric/pulseaudio/oneiric

« back to all changes in this revision

Viewing changes to src/pulsecore/protocol-simple.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2007-12-04 00:56:08 UTC
  • mto: (1.15.1 sid)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20071204005608-3lzrrrpxi186kgx4
Tags: upstream-0.9.8
ImportĀ upstreamĀ versionĀ 0.9.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: protocol-simple.c 1971 2007-10-28 19:13:50Z lennart $ */
 
1
/* $Id: protocol-simple.c 2050 2007-11-13 17:37:44Z lennart $ */
2
2
 
3
3
/***
4
4
  This file is part of PulseAudio.
566
566
 
567
567
pa_protocol_simple* pa_protocol_simple_new(pa_core *core, pa_socket_server *server, pa_module *m, pa_modargs *ma) {
568
568
    pa_protocol_simple* p = NULL;
569
 
    int enable;
 
569
    pa_bool_t enable;
570
570
 
571
571
    pa_assert(core);
572
572
    pa_assert(server);
587
587
    p->source_name = pa_xstrdup(pa_modargs_get_value(ma, "source", NULL));
588
588
    p->sink_name = pa_xstrdup(pa_modargs_get_value(ma, "sink", NULL));
589
589
 
590
 
    enable = 0;
 
590
    enable = FALSE;
591
591
    if (pa_modargs_get_value_boolean(ma, "record", &enable) < 0) {
592
592
        pa_log("record= expects a numeric argument.");
593
593
        goto fail;