aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Yunaev <oldnemesis@xbmc>2013-12-26 23:47:13 -0800
committerGeorge Yunaev <oldnemesis@xbmc>2013-12-26 23:47:13 -0800
commit808750b00766a64a31623aee5e7d5ca5ec1022db (patch)
tree14134c441a3f81062b3f90edbb1a02ccc052423c
parent06dd831e1c84d1c59c72930974772f3deed110c1 (diff)
Fixed karaoke lyrics delay when the whole words are assigned the same time.
-rw-r--r--xbmc/music/karaoke/karaokelyricstext.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/xbmc/music/karaoke/karaokelyricstext.cpp b/xbmc/music/karaoke/karaokelyricstext.cpp
index 2fc40a455e..5ecaa532f0 100644
--- a/xbmc/music/karaoke/karaokelyricstext.cpp
+++ b/xbmc/music/karaoke/karaokelyricstext.cpp
@@ -260,7 +260,9 @@ void CKaraokeLyricsText::Render()
case STATE_PLAYING_PARAGRAPH:
if ( songTime >= m_lyrics[ m_index ].timing )
{
- m_index++;
+ while ( songTime >= m_lyrics[ m_index ].timing && m_index <= m_indexEndPara )
+ m_index++;
+
updateText = true;
if ( m_index > m_indexEndPara )