mirror of
				https://github.com/vdr-projects/vdr.git
				synced 2025-03-01 10:50:46 +00:00 
			
		
		
		
	Fixed storing channel parameters with 0 values
This commit is contained in:
		| @@ -418,3 +418,6 @@ Reinhard Walter Buchner <rw.buchner@freenet.de> | ||||
|  | ||||
| Lauri Tischler <lauri.tischler@efore.fi> | ||||
|  for helping to test and debug the new channel source and DiSEqC handling | ||||
|  | ||||
| Andy Fruit <fruit@ukgateway.net> | ||||
|  for helping to test new DVB-T handling | ||||
|   | ||||
							
								
								
									
										2
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								HISTORY
									
									
									
									
									
								
							| @@ -1542,7 +1542,7 @@ Video Disk Recorder Revision History | ||||
|   to Oliver Endriss). | ||||
| - Modified channel handling to cover all parameters necessary for DVB-C and DVB-T | ||||
|   (see man vdr(5) for the meaning of the additional parameters stored in the field | ||||
|   previously named 'polarisation'). Thanks to Uwe Scheffler for testing. | ||||
|   previously named 'polarisation'). Thanks to Uwe Scheffler and Andy Fruit for testing. | ||||
|   If you have a system with different kinds of DVB cards, like DVB-T and DVB-C, | ||||
|   for instance, there is no more need to distinguish the channels through the | ||||
|   'Ca' parameter in order to assign them to the various DVB cards. This is now | ||||
|   | ||||
| @@ -4,7 +4,7 @@ | ||||
|  * See the main source file 'vdr.c' for copyright information and | ||||
|  * how to reach the author. | ||||
|  * | ||||
|  * $Id: channels.c 1.2 2002/10/06 11:53:45 kls Exp $ | ||||
|  * $Id: channels.c 1.3 2002/10/06 12:41:49 kls Exp $ | ||||
|  */ | ||||
|  | ||||
| #include "channels.h" | ||||
| @@ -200,10 +200,10 @@ cChannel::cChannel(const cChannel *Channel) | ||||
|  | ||||
| static int PrintParameter(char *p, char Name, int Value) | ||||
| { | ||||
|   //XXX return Value > 0 && Value != 999 ? sprintf(p, "%c%d", Name, Value) : 0; | ||||
|   //XXX return Value >= 0 && Value != 999 ? sprintf(p, "%c%d", Name, Value) : 0; | ||||
|   //XXX let's store 999 for the moment, until we generally switch to the NEWSTRUCT | ||||
|   //XXX driver (where the defaults will all be AUTO) | ||||
|   return Value > 0 && (Value != 999 || (Name != 'I' && Name != 'C')) ? sprintf(p, "%c%d", Name, Value) : 0; | ||||
|   return Value >= 0 && (Value != 999 || (Name != 'I' && Name != 'C')) ? sprintf(p, "%c%d", Name, Value) : 0; | ||||
| } | ||||
|  | ||||
| const char *cChannel::ParametersToString(void) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user