From f882ddf588f29f1154ac97fea7ba997ee718cb05 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 6 Jun 2004 11:31:33 +0200 Subject: [PATCH] Fixed missing audio after replaying a DVD --- CONTRIBUTORS | 1 + HISTORY | 1 + dvbdevice.c | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index e649d34d..4c2889b0 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1016,6 +1016,7 @@ Wayne Keer Marco Schlüßler for fixing handling colors in cDvbSpuPalette::yuv2rgb() for fixing setting lnb voltage if the frontend is not DVB-S + for fixing missing audio after replaying a DVD Jürgen Schmitz for reporting a bug in displaying the current channel when switching via the SVDRP diff --git a/HISTORY b/HISTORY index e103c71b..d6ed24df 100644 --- a/HISTORY +++ b/HISTORY @@ -2885,3 +2885,4 @@ Video Disk Recorder Revision History Schlüßler). - Fixed displaying the current channel when switching via the SVDRP command CHAN (thanks to Jürgen Schmitz for reporting this one). +- Fixed missing audio after replaying a DVD (thanks to Marco Schlüßler). diff --git a/dvbdevice.c b/dvbdevice.c index 58ae55a5..e5b777dc 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.88 2004/06/05 16:33:35 kls Exp $ + * $Id: dvbdevice.c 1.89 2004/06/06 11:28:28 kls Exp $ */ #include "dvbdevice.h" @@ -767,6 +767,8 @@ bool cDvbDevice::SetChannelDevice(const cChannel *Channel, bool LiveView) if (IsPrimaryDevice()) AddPid(Channel->Tpid(), ptTeletext); CHECK(ioctl(fd_audio, AUDIO_SET_AV_SYNC, true)); + CHECK(ioctl(fd_audio, AUDIO_SET_MUTE, false)); + CHECK(ioctl(fd_video, VIDEO_SET_BLANK, false)); } else if (StartTransferMode) cControl::Launch(new cTransferControl(this, Channel->Vpid(), Channel->Apid1(), Channel->Apid2(), Channel->Dpid1(), Channel->Dpid2()));