Skip to content

Commit

Permalink
Fix segfault after music scan completes.
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed Jul 22, 2012
1 parent bf557a8 commit b2379ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mythplugins/mythmusic/mythmusic/musicplayer.cpp
Expand Up @@ -293,6 +293,12 @@ void MusicPlayer::stop(bool stopAll)
m_output = NULL;
}

if (stopAll && m_cdWatcher)
{
m_cdWatcher->stop();
m_cdWatcher->wait();
}

// because we don't actually stop the audio output we have to fake a Stopped
// event so any listeners can act on it
OutputEvent oe(OutputEvent::Stopped);
Expand Down

0 comments on commit b2379ae

Please sign in to comment.