mirror of
				https://github.com/vdr-projects/vdr.git
				synced 2025-03-01 10:50:46 +00:00 
			
		
		
		
	Excess blanks in channel names read from the SDT are now removed
This commit is contained in:
		
							
								
								
									
										1
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								HISTORY
									
									
									
									
									
								
							| @@ -2599,3 +2599,4 @@ Video Disk Recorder Revision History | ||||
| - The new SVDRP command 'SCAN' can be used to force  an EPG scan on a single | ||||
|   DVB card system (see MANUAL under Setup/EPG for details). | ||||
| - Fixed handling PID changes in 'Transfer Mode'. | ||||
| - Excess blanks in channel names read from the SDT are now removed. | ||||
|   | ||||
							
								
								
									
										4
									
								
								sdt.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								sdt.c
									
									
									
									
									
								
							| @@ -4,7 +4,7 @@ | ||||
|  * See the main source file 'vdr.c' for copyright information and | ||||
|  * how to reach the author. | ||||
|  * | ||||
|  * $Id: sdt.c 1.6 2004/01/17 11:29:51 kls Exp $ | ||||
|  * $Id: sdt.c 1.7 2004/01/17 17:27:49 kls Exp $ | ||||
|  */ | ||||
|  | ||||
| #include "sdt.h" | ||||
| @@ -83,6 +83,8 @@ void cSdtFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length | ||||
|                            strcpy(ps, NameBuf); | ||||
|                            pn = ShortNameBuf; | ||||
|                            } | ||||
|                         pn = compactspace(pn); | ||||
|                         ps = compactspace(ps); | ||||
|                         if (channel) { | ||||
|                            channel->SetId(sdt.getOriginalNetworkId(), sdt.getTransportStreamId(), SiSdtService.getServiceId()); | ||||
|                            if (Setup.UpdateChannels >= 1) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user