1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-10 08:04:25 +02:00

Removed apparently obsolete code.

This commit is contained in:
Christian Muehlhaeuser
2015-04-18 05:35:33 +02:00
parent 202bb2abb4
commit f9636ecb65

View File

@@ -315,32 +315,17 @@ AudioOutput::setCurrentPosition( float position )
void
AudioOutput::setCurrentTime( qint64 time )
{
// FIXME : This is a bit hacky, but m_totalTime is only used to determine
// if we are about to finish
// FIXME This is a bit hacky, but m_totalTime is only used to determine if we are about to finish
if ( m_totalTime == 0 )
{
m_totalTime = AudioEngine::instance()->currentTrackTotalTime();
}
m_currentTime = time;
m_seekable = ( time > 0 );
emit tick( time );
// tDebug() << Q_FUNC_INFO << "Current time:" << m_currentTime << "/" << m_totalTime;
// FIXME pt 2 : we use temporary variable to avoid overriding m_totalTime
// in the case it is < 0 (which means that the media is not seekable)
qint64 total = m_totalTime;
if ( total <= 0 )
{
total = AudioEngine::instance()->currentTrackTotalTime();
}
if ( time <= 0 )
{
m_seekable = false;
} else {
m_seekable = true;
}
// tDebug() << Q_FUNC_INFO << "Current time:" << m_currentTime << "/" << m_totalTime;
}