diff options
author | Felix Domke <tmbinc@elitedvb.net> | 2005-11-11 16:06:12 (GMT) |
---|---|---|
committer | Felix Domke <tmbinc@elitedvb.net> | 2005-11-11 16:06:12 (GMT) |
commit | 4a4c68a81ef807175d3c193eab4743169d3f9627 (patch) | |
tree | 40c6e585468e27308457f4bc39240e4a0a597035 /lib/dvb/decoder.cpp | |
parent | f94f8561a13e8666dd43e803d45325d1a9347cb2 (diff) |
PAUSE audio, too
Diffstat (limited to 'lib/dvb/decoder.cpp')
-rw-r--r-- | lib/dvb/decoder.cpp | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/lib/dvb/decoder.cpp b/lib/dvb/decoder.cpp index 751796a..951a2ed 100644 --- a/lib/dvb/decoder.cpp +++ b/lib/dvb/decoder.cpp @@ -98,6 +98,18 @@ void eDVBAudio::flush() if (::ioctl(m_fd, AUDIO_CLEAR_BUFFER) < 0) eDebug("audio: AUDIO_CLEAR_BUFFER: %m"); } + +void eDVBAudio::freeze() +{ + if (::ioctl(m_fd, AUDIO_PAUSE) < 0) + eDebug("video: AUDIO_PAUSE: %m"); +} + +void eDVBAudio::unfreeze() +{ + if (::ioctl(m_fd, AUDIO_CONTINUE) < 0) + eDebug("video: AUDIO_CONTINUE: %m"); +} eDVBAudio::~eDVBAudio() { @@ -421,8 +433,10 @@ RESULT eTSMPEGDecoder::freeze(int cont) { if (m_video) m_video->freeze(); - else - return -1; + + if (m_audio) + m_audio->freeze(); + return 0; } @@ -430,8 +444,10 @@ RESULT eTSMPEGDecoder::unfreeze() { if (m_video) m_video->unfreeze(); - else - return -1; + + if (m_audio) + m_audio->unfreeze(); + return 0; } |