mirror of
				https://github.com/vdr-projects/vdr.git
				synced 2025-03-01 10:50:46 +00:00 
			
		
		
		
	Now initializing the channels' schedule pointers when reading the epg.data file, so that the first WhatsOn menu will come up faster
This commit is contained in:
		
							
								
								
									
										2
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								HISTORY
									
									
									
									
									
								
							| @@ -4264,3 +4264,5 @@ Video Disk Recorder Revision History | |||||||
|   of k_Repeat keypresses in channel switching reported by Udo Richter). |   of k_Repeat keypresses in channel switching reported by Udo Richter). | ||||||
| - When looking for the present or following EPG event, the running status is now | - When looking for the present or following EPG event, the running status is now | ||||||
|   always taken into account. |   always taken into account. | ||||||
|  | - Now initializing the channels' schedule pointers when reading the epg.data file, | ||||||
|  |   so that the first WhatsOn menu will come up faster. | ||||||
|   | |||||||
							
								
								
									
										7
									
								
								epg.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								epg.c
									
									
									
									
									
								
							| @@ -7,7 +7,7 @@ | |||||||
|  * Original version (as used in VDR before 1.3.0) written by |  * Original version (as used in VDR before 1.3.0) written by | ||||||
|  * Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>. |  * Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>. | ||||||
|  * |  * | ||||||
|  * $Id: epg.c 1.56 2006/01/29 14:04:04 kls Exp $ |  * $Id: epg.c 1.57 2006/01/29 14:17:33 kls Exp $ | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| #include "epg.h" | #include "epg.h" | ||||||
| @@ -977,6 +977,11 @@ bool cSchedules::Read(FILE *f) | |||||||
|      bool result = cSchedule::Read(f, s); |      bool result = cSchedule::Read(f, s); | ||||||
|      if (OwnFile) |      if (OwnFile) | ||||||
|         fclose(f); |         fclose(f); | ||||||
|  |      if (result) { | ||||||
|  |         // Initialize the channels' schedule pointers, so that the first WhatsOn menu will come up faster: | ||||||
|  |         for (cChannel *Channel = Channels.First(); Channel; Channel = Channels.Next(Channel)) | ||||||
|  |             s->GetSchedule(Channel); | ||||||
|  |         } | ||||||
|      return result; |      return result; | ||||||
|      } |      } | ||||||
|   return false; |   return false; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user