diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-03-11 21:43:25 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-03-11 21:43:25 +0000 |
commit | 9a267a3b499514f5802b12faf6e44dfd1039897d (patch) | |
tree | 5edd49f25c50321ed378f48218f54a93139ff301 /code/client | |
parent | 53bf40f214d5634483240aedaa28a9e54fe518f5 (diff) | |
download | ioquake3-aero-9a267a3b499514f5802b12faf6e44dfd1039897d.tar.gz ioquake3-aero-9a267a3b499514f5802b12faf6e44dfd1039897d.zip |
* (bug 3567) Fix to error handling in Ogg decoder (Joerg Dietrich)
git-svn-id: svn://svn.icculus.org/quake3/trunk@1271 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client')
-rw-r--r-- | code/client/snd_codec_ogg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/code/client/snd_codec_ogg.c b/code/client/snd_codec_ogg.c index a4f1c77..48da5d7 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; } |