diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-05-27 00:30:25 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-05-27 00:30:25 +0000 |
commit | 6a75b780762a8695a83e0e94e6fcbce4d2f73573 (patch) | |
tree | e2b41bd6dd4d9a5751c6b0e91f329530c0b5447f /src/read-vorbis.c | |
parent | d7fd6a45e50475cddf0b8bad8baab01b33cf3c1f (diff) |
autoconfization
git-svn-id: file:///home/lennart/svn/public/libcanberra/trunk@13 01b60673-d06a-42c0-afdd-89cb8e0f78ac
Diffstat (limited to 'src/read-vorbis.c')
-rw-r--r-- | src/read-vorbis.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/read-vorbis.c b/src/read-vorbis.c index 717f851..f54e271 100644 --- a/src/read-vorbis.c +++ b/src/read-vorbis.c @@ -20,7 +20,15 @@ <http://www.gnu.org/licenses/>. ***/ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <vorbis/vorbisfile.h> +#include <vorbis/codec.h> + #include "read-vorbis.h" +#include "macro.h" #define FILE_SIZE_MAX (64U*1024U*1024U) @@ -30,12 +38,12 @@ struct ca_vorbis { static int convert_error(int or) { switch (or) { - case OV_NOSEEK: - case OV_BADPACKET: - case OV_BADLINK: - case OV_FAULT: + case OV_ENOSEEK: + case OV_EBADPACKET: + case OV_EBADLINK: + case OV_EFAULT: case OV_EREAD: - case OV_HOLE: + case OV_EHOLE: return CA_ERROR_IO; case OV_EIMPL: |