Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reverted @a6058c0

  • Loading branch information...
commit 1715fda374acd0a7f51a6089e475e8a154c55d97 1 parent a6058c0
George Yunaev authored
Showing with 1 addition and 6 deletions.
  1. +1 −6 xbmc/music/karaoke/karaokelyricsmanager.cpp
View
7 xbmc/music/karaoke/karaokelyricsmanager.cpp
@@ -109,15 +109,12 @@ bool CKaraokeLyricsManager::Start(const CStdString & strSongPath)
void CKaraokeLyricsManager::Stop()
{
- m_CritSection.lock();
+ CSingleLock lock (m_CritSection);
m_karaokeSongPlaying = false;
if ( !m_Lyrics )
- {
- m_CritSection.unlock();
return;
- }
// Clean up and close karaoke window when stopping
CGUIWindowKaraokeLyrics *window = (CGUIWindowKaraokeLyrics*) g_windowManager.GetWindow(WINDOW_KARAOKELYRICS);
@@ -132,8 +129,6 @@ void CKaraokeLyricsManager::Stop()
m_Lyrics->Shutdown();
delete m_Lyrics;
m_Lyrics = 0;
-
- m_CritSection.unlock();
}
Please sign in to comment.
Something went wrong with that request. Please try again.