From 9e71a3a8a2d092b4ce61c502e82c0a275656a532 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 27 Feb 2010 11:45:25 +0000 Subject: fixed distortions on startup git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1591 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/mediaplayer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/qmmpui/mediaplayer.cpp') 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()) -- cgit v1.2.3-13-gbd6f