workaround: flush on AUDIO_STOP
authorFelix Domke <tmbinc@elitedvb.net>
Tue, 19 Jun 2007 22:59:49 +0000 (22:59 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Tue, 19 Jun 2007 22:59:49 +0000 (22:59 +0000)
lib/dvb/decoder.cpp

index b9c9533af49708a7390f333088cb9fb7c9bd0ae0..2b8e4b8bc114882451143b6351404ea1b0fcd1d1 100644 (file)
@@ -108,6 +108,7 @@ int eDVBAudio::startPid(int pid, int type)
 
 void eDVBAudio::stop()
 {
 
 void eDVBAudio::stop()
 {
+       flush();
        if (::ioctl(m_fd, AUDIO_STOP) < 0)
                eWarning("audio: AUDIO_STOP: %m");
 #if HAVE_DVB_API_VERSION > 2
        if (::ioctl(m_fd, AUDIO_STOP) < 0)
                eWarning("audio: AUDIO_STOP: %m");
 #if HAVE_DVB_API_VERSION > 2