summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-08-08 11:04:46 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-08-08 11:04:46 -0300
commit5e326e49030bd52569471b6f2ea312eb7071e4cf (patch)
treeee04b5bbd7c5dbb4a507bde3dcaf70e3d39c621c /drivers
parent568679b7c4c14141aab0c96e4a1ab54afeb9ccac (diff)
parentd110260c1e5ab076051e37603b93e4f52316ee03 (diff)
Merge pull request #2328 from her001/patch-1
Fix vorbis seek_pos
Diffstat (limited to 'drivers')
-rw-r--r--drivers/vorbis/audio_stream_ogg_vorbis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vorbis/audio_stream_ogg_vorbis.cpp b/drivers/vorbis/audio_stream_ogg_vorbis.cpp
index ed292621e9..249059e2c1 100644
--- a/drivers/vorbis/audio_stream_ogg_vorbis.cpp
+++ b/drivers/vorbis/audio_stream_ogg_vorbis.cpp
@@ -232,7 +232,7 @@ void AudioStreamOGGVorbis::seek_pos(float p_time) {
if (!playing)
return;
- bool ok = ov_time_seek(&vf,p_time*1000)==0;
+ bool ok = ov_time_seek(&vf,p_time)==0;
ERR_FAIL_COND(!ok);
frames_mixed=stream_srate*p_time;
}