diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-02-08 11:27:42 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-02-08 11:27:42 +0100 |
commit | 34d51f5f8375ff711cdf07c5ddef39b10ec6ab88 (patch) | |
tree | 435483ba2cda276c20adc7df0fb60df26ff288d5 /dvbdevice.c | |
parent | 16e71e13631361443fa5574c8c297b8bf6abfdff (diff) | |
download | vdr-34d51f5f8375ff711cdf07c5ddef39b10ec6ab88.tar.gz vdr-34d51f5f8375ff711cdf07c5ddef39b10ec6ab88.tar.bz2 |
Fixed cDvbDevice::SetAudioTrackDevice() to avoid a blank screen after switching back to live mode if a recording is currently active on the primary device
Diffstat (limited to 'dvbdevice.c')
-rw-r--r-- | dvbdevice.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dvbdevice.c b/dvbdevice.c index 269c0a29..2e15ce1d 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.117 2005/02/06 12:30:14 kls Exp $ + * $Id: dvbdevice.c 1.118 2005/02/08 11:20:30 kls Exp $ */ #include "dvbdevice.h" @@ -866,8 +866,10 @@ void cDvbDevice::SetAudioTrackDevice(eTrackType Type) const tTrackId *TrackId = GetTrack(Type); if (TrackId && TrackId->id) { if (IS_AUDIO_TRACK(Type)) { - pidHandles[ptAudio].pid = TrackId->id; - SetPid(&pidHandles[ptAudio], ptAudio, true); + if (pidHandles[ptAudio].pid) { + pidHandles[ptAudio].pid = TrackId->id; + SetPid(&pidHandles[ptAudio], ptAudio, true); + } } else if (IS_DOLBY_TRACK(Type)) { // Currently this works only in Transfer Mode |