X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=osx_writer.c;h=fab608597f8cc944a995ac52e45e607211828231;hp=3a52e1e7b62ee4f5a1189c245f2785bce9642e27;hb=b7e0e1bd8483f630104bd7457bb47d18143cd89d;hpb=b564291f5f15b5bd4a319ea59875023551a705cc diff --git a/osx_writer.c b/osx_writer.c index 3a52e1e7..fab60859 100644 --- a/osx_writer.c +++ b/osx_writer.c @@ -75,8 +75,7 @@ static void destroy_buffers(struct private_osx_writer_data *powd) powd->to->next = NULL; while (ptr) { ptr2 = ptr->next; - if (ptr->buffer) - free(ptr->buffer); + free(ptr->buffer); free(ptr); ptr = ptr2; } @@ -308,7 +307,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;