update alspeaker->stopped warning status to probably false-positive
This commit is contained in:
parent
47db626145
commit
5cde25cb80
@ -151,7 +151,7 @@ void ALStream::update(double delta) {
|
|||||||
}
|
}
|
||||||
ALSpeaker* alspeaker = dynamic_cast<ALSpeaker*>(p_speaker);
|
ALSpeaker* alspeaker = dynamic_cast<ALSpeaker*>(p_speaker);
|
||||||
assert(alspeaker != nullptr);
|
assert(alspeaker != nullptr);
|
||||||
if (alspeaker->stopped) { //-V522
|
if (alspeaker->stopped) {
|
||||||
this->speaker = 0;
|
this->speaker = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -161,7 +161,8 @@ void ALStream::update(double delta) {
|
|||||||
unqueueBuffers(alsource);
|
unqueueBuffers(alsource);
|
||||||
uint preloaded = enqueueBuffers(alsource);
|
uint preloaded = enqueueBuffers(alsource);
|
||||||
|
|
||||||
if (p_speaker->isStopped() && !alspeaker->stopped) { //FIXME: !alspeaker->stopped always true //-V560
|
// alspeaker->stopped is assigned to false at ALSpeaker::play(...)
|
||||||
|
if (p_speaker->isStopped() && !alspeaker->stopped) { //TODO: -V560 false-positive?
|
||||||
if (preloaded) {
|
if (preloaded) {
|
||||||
p_speaker->play();
|
p_speaker->play();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user