]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - alsa_write.c
manual: Fix two typos.
[paraslash.git] / alsa_write.c
index ae3bbfbab60c82ab26311c00b1d0389a7544ec5c..c2a4cc1e94f47d9cf9717334059e6cf57df4970a 100644 (file)
@@ -14,7 +14,6 @@
 
 #include <regex.h>
 #include <sys/types.h>
-#include <dirent.h>
 #include <alsa/asoundlib.h>
 #include <sys/time.h>
 #include <stdbool.h>
@@ -214,7 +213,7 @@ again:
        bytes = btr_next_buffer(btrn, &data);
        if (ret < 0 || bytes < wn->min_iqs) { /* eof */
                assert(btr_no_parent(btrn));
-               ret = -E_ALSA_EOF;
+               ret = -E_WRITE_COMMON_EOF;
                if (!pad)
                        goto err;
                /* wait until pending frames are played */