SVN commit 834384 by mkretz: pullBuffer modifies m_buffersize, so m_currentPosition was not adjusted correctly M +3 -2 bytestream.cpp --- trunk/KDE/kdebase/runtime/phonon/xine/bytestream.cpp #834383:834384 @@ -223,8 +223,9 @@ Q_ASSERT(m_eod); if (m_buffersize > 0) { PXINE_VDEBUG << "calling pullBuffer with m_buffersize = " << m_buffersize; - pullBuffer(static_cast(buf), m_buffersize); - m_currentPosition += m_buffersize; + const int len = m_buffersize; + pullBuffer(static_cast(buf), len); + m_currentPosition += len; PXINE_DEBUG << "returning less data than requested, the stream is at its end"; //kDebug(610) << "UNLOCKING m_mutex: "; return m_buffersize;