(Sorry, hatte das Diff ohne "ignore-whitespace" generiert, deshalb ein paar Zeilen mehr als tatsächlich notwendig).
Code: Alles auswählen
Index: apps/tuxbox/neutrino/src/gui/audioplayer.cpp
===================================================================
RCS file: /cvs/tuxbox/apps/tuxbox/neutrino/src/gui/audioplayer.cpp,v
retrieving revision 1.61
diff -u -u -r1.61 audioplayer.cpp
--- a/apps/tuxbox/neutrino/src/gui/audioplayer.cpp 24 Feb 2009 19:27:59 -0000 1.61
+++ b/apps/tuxbox/neutrino/src/gui/audioplayer.cpp 6 Mar 2009 14:21:06 -0000
@@ -385,10 +385,13 @@
// stop if mode was changed in another thread
loop = false;
}
- if ((m_state != CAudioPlayerGui::STOP) &&
- (CAudioPlayer::getInstance()->getState() == CBaseDec::STOP) &&
+ if ((m_state != CAudioPlayerGui::STOP) &&
+ (CAudioPlayer::getInstance()->getState() == CBaseDec::STOP) &&
(!m_playlist.empty()))
{
+ // we must stop the current running decoder thread
+ fprintf(stderr,"CAudioPlayerGui:show - end of song detected...\n");
+ CAudioPlayer::getInstance()->stop();
if(m_curr_audiofile.FileType != CFile::STREAM_AUDIO)
playNext();
}