Added missing AUDIO_PAUSE/AUDIO_CONTINUE calls to cDvbDevice

This commit is contained in:
Klaus Schmidinger 2009-04-10 10:27:16 +02:00
parent 0a2de94d07
commit fc0d238194
3 changed files with 11 additions and 4 deletions

View File

@ -666,6 +666,7 @@ Oliver Endriss <o.endriss@gmx.de>
even in trick modes even in trick modes
for pointing out a problem with the decimal point of the F record in the info file of for pointing out a problem with the decimal point of the F record in the info file of
a recording a recording
for adding missing AUDIO_PAUSE/AUDIO_CONTINUE calls to cDvbDevice
Reinhard Walter Buchner <rw.buchner@freenet.de> Reinhard Walter Buchner <rw.buchner@freenet.de>
for adding some satellites to 'sources.conf' for adding some satellites to 'sources.conf'

View File

@ -5979,7 +5979,7 @@ Video Disk Recorder Revision History
cDevice class reimplements PlayTs() or PlayPes(), it also needs to make sure this cDevice class reimplements PlayTs() or PlayPes(), it also needs to make sure this
new function works as expected. new function works as expected.
2009-04-05: Version 1.7.5 2009-04-10: Version 1.7.5
- Fixed a hangup when replaying a TS recording with subtitles activated (reported - Fixed a hangup when replaying a TS recording with subtitles activated (reported
by Timo Helkio). by Timo Helkio).
@ -6025,3 +6025,5 @@ Video Disk Recorder Revision History
Oliver Endriss for pointing out a problem with the F record in the info file of Oliver Endriss for pointing out a problem with the F record in the info file of
a recording). a recording).
- Fixed detecting the frame rate for radio recordings. - Fixed detecting the frame rate for radio recordings.
- Added missing AUDIO_PAUSE/AUDIO_CONTINUE calls to cDvbDevice (thanks to Oliver
Endriss).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: dvbdevice.c 2.13 2009/04/05 10:42:59 kls Exp $ * $Id: dvbdevice.c 2.14 2009/04/10 09:54:24 kls Exp $
*/ */
#include "dvbdevice.h" #include "dvbdevice.h"
@ -1172,8 +1172,10 @@ void cDvbDevice::Play(void)
CHECK(ioctl(fd_audio, AUDIO_CONTINUE)); CHECK(ioctl(fd_audio, AUDIO_CONTINUE));
} }
else { else {
if (fd_audio >= 0) if (fd_audio >= 0) {
CHECK(ioctl(fd_audio, AUDIO_SET_AV_SYNC, true)); CHECK(ioctl(fd_audio, AUDIO_SET_AV_SYNC, true));
CHECK(ioctl(fd_audio, AUDIO_CONTINUE));
}
if (fd_video >= 0) if (fd_video >= 0)
CHECK(ioctl(fd_video, VIDEO_CONTINUE)); CHECK(ioctl(fd_video, VIDEO_CONTINUE));
} }
@ -1187,8 +1189,10 @@ void cDvbDevice::Freeze(void)
CHECK(ioctl(fd_audio, AUDIO_PAUSE)); CHECK(ioctl(fd_audio, AUDIO_PAUSE));
} }
else { else {
if (fd_audio >= 0) if (fd_audio >= 0) {
CHECK(ioctl(fd_audio, AUDIO_SET_AV_SYNC, false)); CHECK(ioctl(fd_audio, AUDIO_SET_AV_SYNC, false));
CHECK(ioctl(fd_audio, AUDIO_PAUSE));
}
if (fd_video >= 0) if (fd_video >= 0)
CHECK(ioctl(fd_video, VIDEO_FREEZE)); CHECK(ioctl(fd_video, VIDEO_FREEZE));
} }