diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-05-23 10:12:44 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-05-23 10:12:44 +0200 |
commit | e912e48282b5937f88c4a51cc89aa4247d849084 (patch) | |
tree | 5855b7ffed6b532441fbca858e03b89e9f41d8a4 /dvbdevice.c | |
parent | 4c5aedbd797ea4308974a3db4107cc8e32f50d17 (diff) | |
download | vdr-e912e48282b5937f88c4a51cc89aa4247d849084.tar.gz vdr-e912e48282b5937f88c4a51cc89aa4247d849084.tar.bz2 |
Added play mode pmVideoOnly
Diffstat (limited to 'dvbdevice.c')
-rw-r--r-- | dvbdevice.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/dvbdevice.c b/dvbdevice.c index 9d659e6b..cb143a6d 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 1.85 2004/05/22 15:11:48 kls Exp $ + * $Id: dvbdevice.c 1.86 2004/05/23 10:11:42 kls Exp $ */ #include "dvbdevice.h" @@ -873,6 +873,16 @@ bool cDvbDevice::SetPlayMode(ePlayMode PlayMode) CHECK(ioctl(fd_audio, AUDIO_PLAY)); CHECK(ioctl(fd_video, VIDEO_SET_BLANK, false)); break; + case pmVideoOnly: + CHECK(ioctl(fd_video, VIDEO_SET_BLANK, true)); + CHECK(ioctl(fd_video, VIDEO_STOP, true)); + CHECK(ioctl(fd_audio, AUDIO_SELECT_SOURCE, AUDIO_SOURCE_DEMUX)); + CHECK(ioctl(fd_audio, AUDIO_SET_AV_SYNC, false)); + CHECK(ioctl(fd_audio, AUDIO_PLAY)); + CHECK(ioctl(fd_video, VIDEO_CLEAR_BUFFER)); + CHECK(ioctl(fd_video, VIDEO_SELECT_SOURCE, VIDEO_SOURCE_MEMORY)); + CHECK(ioctl(fd_video, VIDEO_PLAY)); + break; case pmExtern_THIS_SHOULD_BE_AVOIDED: close(fd_video); close(fd_audio); |