From: Andre Noll Date: Sun, 20 Aug 2006 15:26:34 +0000 (+0200) Subject: Add UNIT_START errno X-Git-Tag: v0.2.14~43 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=95ef8f79c9ae684e07568653b0c68ea669188e9f;p=paraslash.git Add UNIT_START errno The old code returned -1 which is a bug. --- diff --git a/error.h b/error.h index 3b31d82e..cbfb4083 100644 --- 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"), \ diff --git a/osx_writer.c b/osx_writer.c index 3a52e1e7..089b5d78 100644 --- a/osx_writer.c +++ b/osx_writer.c @@ -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;