diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-02-27 11:45:25 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-02-27 11:45:25 +0000 |
| commit | 9e71a3a8a2d092b4ce61c502e82c0a275656a532 (patch) | |
| tree | 8c03091ff002aca7e499a1b7c1e5d0c542d5301f /src/qmmpui/mediaplayer.cpp | |
| parent | ff77ab748343db3b373f30d0f6f10d9d8485bad4 (diff) | |
| download | qmmp-9e71a3a8a2d092b4ce61c502e82c0a275656a532.tar.gz qmmp-9e71a3a8a2d092b4ce61c502e82c0a275656a532.tar.bz2 qmmp-9e71a3a8a2d092b4ce61c502e82c0a275656a532.zip | |
fixed distortions on startup
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1591 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/mediaplayer.cpp')
| -rw-r--r-- | src/qmmpui/mediaplayer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qmmpui/mediaplayer.cpp b/src/qmmpui/mediaplayer.cpp index 35f52e6e0..bf6648470 100644 --- a/src/qmmpui/mediaplayer.cpp +++ b/src/qmmpui/mediaplayer.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2009 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -72,7 +72,7 @@ bool MediaPlayer::isRepeatable() const return m_repeat; } -void MediaPlayer::play() +void MediaPlayer::play(qint64 offset) { m_pl_manager->currentPlayList()->doCurrentVisibleRequest(); if (m_core->state() == Qmmp::Paused) @@ -96,7 +96,7 @@ void MediaPlayer::play() return; } - if (!m_core->play(s)) + if (!m_core->play(s, FALSE, offset)) { //find out the reason why playback failed switch ((int) m_core->state()) |
