aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-06-22 14:17:44 +0000
committerMax Horn2003-06-22 14:17:44 +0000
commit3883de39a9ce3103503b37472aded49a80d6c194 (patch)
tree09a81ed13a8d11f0fb561ee26610acac4cb3116c
parentc03fb13a0b070c605e031525b920d41e3ec8cf2a (diff)
downloadscummvm-rg350-3883de39a9ce3103503b37472aded49a80d6c194.tar.gz
scummvm-rg350-3883de39a9ce3103503b37472aded49a80d6c194.tar.bz2
scummvm-rg350-3883de39a9ce3103503b37472aded49a80d6c194.zip
d'oh
svn-id: r8611
-rw-r--r--sound/mixer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp
index 49ccdcb5db..d11f5b551e 100644
--- a/sound/mixer.cpp
+++ b/sound/mixer.cpp
@@ -1128,12 +1128,12 @@ void ChannelVorbis::mix(int16 *data, uint len) {
delete [] samples;
- if (_eof_flag && ! _is_cd_track)
+ if (_eof_flag && !_is_cd_track)
destroy();
}
bool ChannelVorbis::isActive() {
- return !_eof_flag && !(_end_pos <= 0 && ov_pcm_tell(_ov_file) >= _end_pos);
+ return !_eof_flag && !(_end_pos > 0 && ov_pcm_tell(_ov_file) >= _end_pos);
}
#endif