mirror of
				https://github.com/vdr-projects/vdr.git
				synced 2025-03-01 10:50:46 +00:00 
			
		
		
		
	Fixed tuning to the channel of a VPS timer if the device is the actual device
This commit is contained in:
		
							
								
								
									
										1
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								HISTORY
									
									
									
									
									
								
							| @@ -4676,3 +4676,4 @@ Video Disk Recorder Revision History | ||||
|   menu.c to "restart anyway?" (suggested by Rolf Ahrenberg). | ||||
| - Removed the obsolete "'1' for encrypted radio channels" part from the description | ||||
|   of the VPID in vdr.5 (reported by Alexander Hans). | ||||
| - Fixed tuning to the channel of a VPS timer if the device is the actual device. | ||||
|   | ||||
							
								
								
									
										6
									
								
								vdr.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								vdr.c
									
									
									
									
									
								
							| @@ -22,7 +22,7 @@ | ||||
|  * | ||||
|  * The project's page is at http://www.cadsoft.de/vdr | ||||
|  * | ||||
|  * $Id: vdr.c 1.265 2006/04/28 12:24:04 kls Exp $ | ||||
|  * $Id: vdr.c 1.266 2006/04/28 13:23:55 kls Exp $ | ||||
|  */ | ||||
|  | ||||
| #include <getopt.h> | ||||
| @@ -792,9 +792,9 @@ int main(int argc, char *argv[]) | ||||
|                         } | ||||
|                      // Switch the device to the transponder: | ||||
|                      if (Device) { | ||||
|                         if (Device == cDevice::ActualDevice() && !Device->IsPrimaryDevice()) | ||||
|                            cDevice::PrimaryDevice()->StopReplay(); // stop transfer mode | ||||
|                         if (!Device->IsTunedToTransponder(Timer->Channel())) { | ||||
|                            if (Device == cDevice::ActualDevice() && !Device->IsPrimaryDevice()) | ||||
|                               cDevice::PrimaryDevice()->StopReplay(); // stop transfer mode | ||||
|                            dsyslog("switching device %d to channel %d", Device->DeviceNumber() + 1, Timer->Channel()->Number()); | ||||
|                            Device->SwitchChannel(Timer->Channel(), false); | ||||
|                            DeviceUsed[Device->DeviceNumber()] = Now; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user