mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 07:36:48 +02:00
little fix for duration bug
This commit is contained in:
@@ -1251,7 +1251,7 @@ AudioEngine::currentTrackTotalTime() const
|
|||||||
{
|
{
|
||||||
// TODO : This is too hacky. The problem is that I don't know why
|
// TODO : This is too hacky. The problem is that I don't know why
|
||||||
// libVLC doesn't report total duration for stream data (imem://)
|
// libVLC doesn't report total duration for stream data (imem://)
|
||||||
if ( d_func()->currentTrack && d_func()->currentTrack->track() ) {
|
if ( d_func()->audioOutput->totalTime() == 0 && d_func()->currentTrack && d_func()->currentTrack->track() ) {
|
||||||
return d_func()->currentTrack->track()->duration() * 1000 + 1000;
|
return d_func()->currentTrack->track()->duration() * 1000 + 1000;
|
||||||
}
|
}
|
||||||
return d_func()->audioOutput->totalTime();
|
return d_func()->audioOutput->totalTime();
|
||||||
|
Reference in New Issue
Block a user