diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2015-10-08 01:35:09 +0200 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2015-10-08 01:35:09 +0200 |
commit | fdf8a036a31a7c036728d408c83823476b70afd0 (patch) | |
tree | a9e235b6e6c48eae37c7b772680060263df7a6ac /plugins | |
parent | 9b2894b0f551f29fb7b3ff647c8d60ae25674b2d (diff) |
Fix use of QFile::seek() it is absolute!
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/soundsourcewv/soundsourcewv.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/soundsourcewv/soundsourcewv.cpp b/plugins/soundsourcewv/soundsourcewv.cpp index d6ff675064..db88fc8f8e 100644 --- a/plugins/soundsourcewv/soundsourcewv.cpp +++ b/plugins/soundsourcewv/soundsourcewv.cpp @@ -266,7 +266,6 @@ int SoundSourceWV::SetPosAbsCallback(void* id, unsigned int pos) if (!pFile) { return 0; } - pFile->reset(); return pFile->seek(pos) ? 0 : -1; } @@ -280,12 +279,10 @@ int SoundSourceWV::SetPosRelCallback(void *id, int delta, int mode) switch(mode) { case SEEK_SET: - pFile->reset(); return pFile->seek(delta) ? 0 : -1; case SEEK_CUR: - return pFile->seek(delta) ? 0 : -1; + return pFile->seek(pFile->pos() + delta) ? 0 : -1; case SEEK_END: - pFile->reset(); return pFile->seek(pFile->size() + delta) ? 0 : -1; default: return -1; |