~ubuntu-branches/ubuntu/trusty/soundmodem/trusty

« back to all changes in this revision

Viewing changes to soundcard/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Kamal Mostafa
  • Date: 2011-06-22 07:12:47 UTC
  • mfrom: (1.3.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110622071247-s9548jfjv3shfu1v
Tags: 0.16-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
/*
4
4
 *      main.c  --  Soundmodem main.
5
5
 *
6
 
 *      Copyright (C) 1999-2001, 2003
 
6
 *      Copyright (C) 1999-2001, 2003, 2010
7
7
 *        Thomas Sailer (t.sailer@alumni.ethz.ch)
8
8
 *
9
9
 *      This program is free software; you can redistribute it and/or modify
151
151
        unsigned int sr, ismkiss = 0;
152
152
 
153
153
        for (; node; node = node->next) {
 
154
                if (node->type != XML_ELEMENT_NODE) 
 
155
                        continue; 
154
156
                if (!node->name)
155
157
                        logprintf(MLOG_FATAL, "Node has no name\n");
156
158
                if (!strcmp(node->name, "pkt")) {
233
235
        unsigned int samplerate = 5000, mode;
234
236
 
235
237
        for (; node; node = node->next) {
 
238
                if (node->type != XML_ELEMENT_NODE) 
 
239
                        continue; 
236
240
                if (!node->name)
237
241
                        logprintf(MLOG_FATAL, "Node has no name\n");
238
242
                if (!strcmp(node->name, "audio")) {