]> git.tue.mpg.de Git - paraslash.git/commitdiff
Add UNIT_START errno
authorAndre Noll <maan@congo.fml.local>
Sun, 20 Aug 2006 15:26:34 +0000 (17:26 +0200)
committerAndre Noll <maan@congo.fml.local>
Sun, 20 Aug 2006 15:26:34 +0000 (17:26 +0200)
The old code returned -1 which is a bug.

error.h
osx_writer.c

diff --git a/error.h b/error.h
index 3b31d82e529e7fb84955d4d2f2498a72812e709e..cbfb40835d67911fecf649c1cfb7558baa699a40 100644 (file)
--- a/error.h
+++ b/error.h
@@ -100,6 +100,7 @@ extern const char **para_errlist[];
        PARA_ERROR(READ_STDIN, "failed to read from stdin"), \
        PARA_ERROR(OPEN_COMP, "OpenAComponent() error"), \
        PARA_ERROR(UNIT_INIT, "AudioUnitInitialize() error"), \
+       PARA_ERROR(UNIT_START, "AudioUnitStart() error"), \
        PARA_ERROR(DEFAULT_COMP, "can not find default audio output component"), \
 
 
index 3a52e1e7b62ee4f5a1189c245f2785bce9642e27..089b5d786177e5d6b0b5b521812549cbbe83d02c 100644 (file)
@@ -308,7 +308,7 @@ static int osx_write_post_select(__a_unused struct sched *s,
        wn->written = *wng->loaded;
        if (!powd->play) {
                if (AudioOutputUnitStart(powd->output))
-                       return -1;
+                       return -E_UNIT_START;
                powd->play = 1;
        }
        return 1;