From 6a75b780762a8695a83e0e94e6fcbce4d2f73573 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 27 May 2008 00:30:25 +0000 Subject: autoconfization git-svn-id: file:///home/lennart/svn/public/libcanberra/trunk@13 01b60673-d06a-42c0-afdd-89cb8e0f78ac --- src/read-vorbis.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'src/read-vorbis.c') 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 @@ . ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + +#include +#include + #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: -- cgit