mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-18 20:04:00 +02:00
added quick fix for libvlc not seeking correctly to an end for some tracks
This commit is contained in:
@@ -431,6 +431,11 @@ AudioOutput::seek( qint64 milliseconds )
|
||||
{
|
||||
|
||||
// tDebug() << Q_FUNC_INFO << "AudioOutput:: seeking" << milliseconds << "msec";
|
||||
|
||||
// for some tracks, seeking to an end seems not to work correctly with libvlc
|
||||
// (tracks enter a random and infinite loop) - this is a temporary fix for that
|
||||
if (milliseconds == libvlc_media_player_get_length(m_vlcPlayer) && milliseconds > 0)
|
||||
milliseconds -= 1;
|
||||
libvlc_media_player_set_time( m_vlcPlayer, milliseconds );
|
||||
setCurrentTime( milliseconds );
|
||||
}
|
||||
|
Reference in New Issue
Block a user