diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/mixer.cpp | 4 |
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 |