]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - afs.c
Remove unused error code E_OGG_STREAM_FLUSH.
[paraslash.git] / afs.c
diff --git a/afs.c b/afs.c
index 050e1965cb68e71257c109d35b6ae23671c56949..b6cce36f42e30cd5672d7e5cc9934cc2d659ca8f 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -418,11 +418,10 @@ static int pass_afd(int fd, char *buf, size_t size)
  */
 static int open_next_audio_file(void)
 {
-       struct audio_file_data afd;
-       int ret, shmid;
+       int ret, shmid, fd;
        char buf[8];
 
-       ret = open_and_update_audio_file(&afd);
+       ret = open_and_update_audio_file(&fd);
        if (ret < 0) {
                if (ret != -OSL_ERRNO_TO_PARA_ERROR(E_OSL_RB_KEY_NOT_FOUND))
                        PARA_ERROR_LOG("%s\n", para_strerror(-ret));
@@ -435,8 +434,8 @@ static int open_next_audio_file(void)
        }
        *(uint32_t *)buf = NEXT_AUDIO_FILE;
        *(uint32_t *)(buf + 4) = (uint32_t)shmid;
-       ret = pass_afd(afd.fd, buf, 8);
-       close(afd.fd);
+       ret = pass_afd(fd, buf, 8);
+       close(fd);
        if (ret >= 0)
                return ret;
 destroy: