mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-31 04:50:48 +00:00
Fix calling SetPosition when not playing
This commit is contained in:
parent
a6900b48ba
commit
0adfdf31dd
1 changed files with 2 additions and 0 deletions
|
@ -323,6 +323,8 @@ public:
|
||||||
if(!Decoder->seek(ms_pos))
|
if(!Decoder->seek(ms_pos))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if(!Playing)
|
||||||
|
return true;
|
||||||
// Stop the source so that all buffers become processed, then call
|
// Stop the source so that all buffers become processed, then call
|
||||||
// IsEnded() to refill and restart the source queue with the new
|
// IsEnded() to refill and restart the source queue with the new
|
||||||
// position.
|
// position.
|
||||||
|
|
Loading…
Reference in a new issue