diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2009-04-10 10:27:16 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2009-04-10 10:27:16 +0200 |
commit | fc0d238194eb581aa74455a8ed0fad3ea76785d2 (patch) | |
tree | f1958e76cc0a4fb7316c0e936192f30b43588e83 /dvbdevice.c | |
parent | 0a2de94d07bbfea2e480c69ce3722744c375d477 (diff) | |
download | vdr-fc0d238194eb581aa74455a8ed0fad3ea76785d2.tar.gz vdr-fc0d238194eb581aa74455a8ed0fad3ea76785d2.tar.bz2 |
Added missing AUDIO_PAUSE/AUDIO_CONTINUE calls to cDvbDevice
Diffstat (limited to 'dvbdevice.c')
-rw-r--r-- | dvbdevice.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/dvbdevice.c b/dvbdevice.c index a1b2cfc4..942abf11 100644 --- a/dvbdevice.c +++ b/dvbdevice.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * 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" @@ -1172,8 +1172,10 @@ void cDvbDevice::Play(void) CHECK(ioctl(fd_audio, AUDIO_CONTINUE)); } else { - if (fd_audio >= 0) + if (fd_audio >= 0) { CHECK(ioctl(fd_audio, AUDIO_SET_AV_SYNC, true)); + CHECK(ioctl(fd_audio, AUDIO_CONTINUE)); + } if (fd_video >= 0) CHECK(ioctl(fd_video, VIDEO_CONTINUE)); } @@ -1187,8 +1189,10 @@ void cDvbDevice::Freeze(void) CHECK(ioctl(fd_audio, AUDIO_PAUSE)); } else { - if (fd_audio >= 0) + if (fd_audio >= 0) { CHECK(ioctl(fd_audio, AUDIO_SET_AV_SYNC, false)); + CHECK(ioctl(fd_audio, AUDIO_PAUSE)); + } if (fd_video >= 0) CHECK(ioctl(fd_video, VIDEO_FREEZE)); } |