From 6a213889dc1c8c568f0c85c5376eb2418a5a1bff Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Tue, 11 Mar 2008 21:43:25 +0000 Subject: [PATCH] * (bug 3567) Fix to error handling in Ogg decoder (Joerg Dietrich) --- code/client/snd_codec_ogg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/client/snd_codec_ogg.c b/code/client/snd_codec_ogg.c index a4f1c774..48da5d73 100644 --- a/code/client/snd_codec_ogg.c +++ b/code/client/snd_codec_ogg.c @@ -128,7 +128,7 @@ int S_OGG_Callback_seek(void *datasource, ogg_int64_t offset, int whence) retVal = FS_Seek(stream->file, (long) offset, FS_SEEK_SET); // something has gone wrong, so we return here - if(!(retVal == 0)) + if(retVal < 0) { return retVal; } @@ -144,7 +144,7 @@ int S_OGG_Callback_seek(void *datasource, ogg_int64_t offset, int whence) retVal = FS_Seek(stream->file, (long) offset, FS_SEEK_CUR); // something has gone wrong, so we return here - if(!(retVal == 0)) + if(retVal < 0) { return retVal; } @@ -163,7 +163,7 @@ int S_OGG_Callback_seek(void *datasource, ogg_int64_t offset, int whence) retVal = FS_Seek(stream->file, (long) stream->length + (long) offset, FS_SEEK_SET); // something has gone wrong, so we return here - if(!(retVal == 0)) + if(retVal < 0) { return retVal; }