From b08a32af23dcc3840f16ee3eaff3e873e947d494 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 28 Feb 2008 21:16:56 +0000 Subject: make duration of files with empty tags available by general plugins git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@261 90c681e8-e032-0410-971d-27865f9a5e38 --- src/ui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/mainwindow.cpp') diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 07b0c647b..b5fb8a6f9 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -335,10 +335,10 @@ void MainWindow::showOutputState(const OutputState &st) info.setValue(SongInfo::GENRE, tag->genre()); info.setValue(SongInfo::YEAR, tag->year()); info.setValue(SongInfo::TRACK, tag->track()); - info.setValue(SongInfo::LENGTH, tag->length()); } else info.setValue(SongInfo::TITLE, m_playlist->currentItem()->title()); + info.setValue(SongInfo::LENGTH, (uint) m_playlist->currentItem()->length()); info.setValue(SongInfo::STREAM, m_playlist->currentItem()->path().startsWith("http://")); m_generalHandler->setSongInfo(info); -- cgit v1.2.3-13-gbd6f