diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-12-14 10:59:34 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-12-14 10:59:34 +0100 |
commit | f3fdca49b95dc28b4e9601033649422b873ff440 (patch) | |
tree | ec7b086d0960cbe6416a0ed094758a0a830d8212 /dvbdevice.c | |
parent | f784d52a3999505204c38d4e14ca5674f8f492e7 (diff) | |
download | vdr-f3fdca49b95dc28b4e9601033649422b873ff440.tar.gz vdr-f3fdca49b95dc28b4e9601033649422b873ff440.tar.bz2 |
No longer stopping/restarting the DMX when switching audio channels
Diffstat (limited to 'dvbdevice.c')
-rw-r--r-- | dvbdevice.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/dvbdevice.c b/dvbdevice.c index 45b7fbb1..adc900b6 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.39 2002/12/13 15:29:50 kls Exp $ + * $Id: dvbdevice.c 1.40 2002/12/14 10:52:13 kls Exp $ */ #include "dvbdevice.h" @@ -686,11 +686,9 @@ const char **cDvbDevice::GetAudioTracksDevice(int *CurrentTrack) const void cDvbDevice::SetAudioTrackDevice(int Index) { if (0 <= Index && Index < NumAudioTracksDevice()) { - int vpid = pidHandles[ptVideo].pid; // need to turn video PID off/on to restart demux - DelPid(vpid); - DelPid(pidHandles[ptAudio].pid); - AddPid(Index ? aPid2 : aPid1, ptAudio); - AddPid(vpid, ptVideo); + int Pid = Index ? aPid2 : aPid1; + pidHandles[ptAudio].pid = Pid; + SetPid(&pidHandles[ptAudio], ptAudio, true); } } |