]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - ogg_afh.c
Fix para_strerror() and use osl() wrapper for osl library calls.
[paraslash.git] / ogg_afh.c
index 2030eada238a85e939a325c0ef9ad0b771f0e8d2..40aa6b64e9e81d58345ee4039ca68cc6a466c764 100644 (file)
--- a/ogg_afh.c
+++ b/ogg_afh.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2004-2008 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2004-2009 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -9,6 +9,7 @@
 #include <ogg/ogg.h>
 #include <vorbis/codec.h>
 #include <vorbis/vorbisfile.h>
+#include <osl.h>
 
 #include "para.h"
 #include "afh.h"
@@ -210,7 +211,6 @@ static long unsigned ogg_compute_chunk_table(OggVorbis_File *of,
        long unsigned num_chunks;
        ogg_int64_t max = 0, min = 0, old_pos = 0;
 
-       ret = 0;
        num = time_total / chunk_time + 3;
        PARA_DEBUG_LOG("chunk time: %g allocating %d chunk pointers\n",
                chunk_time, num);