From 0adfdf31dda641827a69557ef67da3795b8b9b05 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 25 Jun 2014 21:50:52 -0700 Subject: [PATCH] Fix calling SetPosition when not playing --- src/sound/oalsound.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sound/oalsound.cpp b/src/sound/oalsound.cpp index 916716788..db4c459eb 100644 --- a/src/sound/oalsound.cpp +++ b/src/sound/oalsound.cpp @@ -323,6 +323,8 @@ public: if(!Decoder->seek(ms_pos)) return false; + if(!Playing) + return true; // Stop the source so that all buffers become processed, then call // IsEnded() to refill and restart the source queue with the new // position.