diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-08-16 09:27:53 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-08-16 09:27:53 +0200 |
commit | 435018bf4fa749a69e9178a569347885ebeeec64 (patch) | |
tree | 30f612106ecc1e941e18e6a8ff976b18ba5dd0ba /dvbdevice.c | |
parent | 470415ad230d8455439edadb07dae0a21978783b (diff) | |
download | vdr-435018bf4fa749a69e9178a569347885ebeeec64.tar.gz vdr-435018bf4fa749a69e9178a569347885ebeeec64.tar.bz2 |
Always doing the 'special handling to return from PCM replay'
Diffstat (limited to 'dvbdevice.c')
-rw-r--r-- | dvbdevice.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/dvbdevice.c b/dvbdevice.c index 54da3bde..6be882fa 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.6 2002/08/16 09:22:29 kls Exp $ + * $Id: dvbdevice.c 1.7 2002/08/16 09:27:53 kls Exp $ */ #include "dvbdevice.h" @@ -580,12 +580,11 @@ bool cDvbDevice::SetPlayMode(ePlayMode PlayMode) switch (PlayMode) { case pmNone: - if (playMode == pmAudioOnly) { - // special "handling" to return from PCM replay - CHECK(ioctl(fd_video, VIDEO_SET_BLANK, true)); - CHECK(ioctl(fd_video, VIDEO_SELECT_SOURCE, VIDEO_SOURCE_MEMORY)); - CHECK(ioctl(fd_video, VIDEO_PLAY)); - } + // special handling to return from PCM replay: + CHECK(ioctl(fd_video, VIDEO_SET_BLANK, true)); + CHECK(ioctl(fd_video, VIDEO_SELECT_SOURCE, VIDEO_SOURCE_MEMORY)); + CHECK(ioctl(fd_video, VIDEO_PLAY)); + CHECK(ioctl(fd_video, VIDEO_STOP, true)); CHECK(ioctl(fd_audio, AUDIO_STOP, true)); CHECK(ioctl(fd_video, VIDEO_CLEAR_BUFFER)); |