Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: [PATCH] Channel switch
One small change. Did not worked correctly on the secondary card
if the channel doesn't have to be switched.
--- vdr-1.1.21-orig/dvbdevice.c 2003-01-06 15:44:27.000000000 +0100
+++ vdr-1.1.x-current-save/dvbdevice.c 2003-01-16 18:36:37.000000000 +0100
@@ -604,19 +604,20 @@
bool TurnOffLivePIDs = HasDecoder()
&& (DoTune
|| IsEncrypted && pidHandles[ptVideo].pid != Channel->Vpid() // CA channels can only be decrypted in "live" mode
- || !IsPrimaryDevice()
|| LiveView // for a new live view the old PIDs need to be turned off
- || pidHandles[ptVideo].pid == Channel->Vpid() // for recording the PIDs must be shifted from DMX_PES_AUDIO/VIDEO to DMX_PES_OTHER
+ || IsPrimaryDevice() && pidHandles[ptVideo].pid == Channel->Vpid() // for recording the PIDs must be shifted from DMX_PES_AUDIO/VIDEO to DMX_PES_OTHER
);
- bool StartTransferMode = IsPrimaryDevice() && !IsEncrypted && !DoTune
+ bool StartTransferMode = IsPrimaryDevice() && !IsEncrypted
&& (LiveView && HasPid(Channel->Vpid()) && pidHandles[ptVideo].pid != Channel->Vpid() // the PID is already set as DMX_PES_OTHER
|| !LiveView && pidHandles[ptVideo].pid == Channel->Vpid() // a recording is going to shift the PIDs from DMX_PES_AUDIO/VIDEO to DMX_PES_OTHER
+ || !LiveView && DoTune
);
bool TurnOnLivePIDs = HasDecoder() && !StartTransferMode
&& (IsEncrypted // CA channels can only be decrypted in "live" mode
|| LiveView
+ || (DoTune && !IsPrimaryDevice())
);
#ifndef DO_MULTIPLE_RECORDINGS
--
Stefan Huelswitt
huels@iname.com | http://home.pages.de/~nathan
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index