Ensure ALStream::source is valid in ALStream::queryOffset()
This commit is contained in:
parent
9dc42914de
commit
a474bd81e1
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ ALStream::State ALStream::queryState()
|
|||
|
||||
float ALStream::queryOffset()
|
||||
{
|
||||
if (state == Closed)
|
||||
if (state == Closed || !source)
|
||||
return 0;
|
||||
|
||||
float procOffset = static_cast<float>(procFrames) / source->sampleRate();
|
||||
|
|
Loading…
Add table
Reference in a new issue