mirror of
				https://github.com/vdr-projects/vdr.git
				synced 2025-03-01 10:50:46 +00:00 
			
		
		
		
	When estimating the remaining disk space (in hours), the average data rate of all existing recordings is now taken into account
This commit is contained in:
		
							
								
								
									
										10
									
								
								recording.h
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								recording.h
									
									
									
									
									
								
							| @@ -4,7 +4,7 @@ | ||||
|  * See the main source file 'vdr.c' for copyright information and | ||||
|  * how to reach the author. | ||||
|  * | ||||
|  * $Id: recording.h 2.29 2012/03/12 11:44:06 kls Exp $ | ||||
|  * $Id: recording.h 2.30 2012/03/13 12:41:05 kls Exp $ | ||||
|  */ | ||||
|  | ||||
| #ifndef __RECORDING_H | ||||
| @@ -129,6 +129,9 @@ public: | ||||
|        ///< If the number of frames is unknown, -1 will be returned. | ||||
|   int LengthInSeconds(void) const; | ||||
|        ///< Returns the length (in seconds) of this recording, or -1 in case of error. | ||||
|   int FileSizeMB(void) const; | ||||
|        ///< Returns the total file size of this recording (in MB), or -1 if the file | ||||
|        ///< size is unknown. | ||||
|   bool IsNew(void) const { return GetResume() <= 0; } | ||||
|   bool IsEdited(void) const; | ||||
|   bool IsPesRecording(void) const { return isPesRecording; } | ||||
| @@ -190,7 +193,10 @@ public: | ||||
|   void AddByName(const char *FileName, bool TriggerUpdate = true); | ||||
|   void DelByName(const char *FileName); | ||||
|   void UpdateByName(const char *FileName); | ||||
|   int TotalFileSizeMB(void); ///< Only for deleted recordings! | ||||
|   int TotalFileSizeMB(void); | ||||
|   double MBperMinute(void); | ||||
|        ///< Returns the average data rate (in MB/min) of all recordings, or -1 if | ||||
|        ///< this value is unknown. | ||||
|   }; | ||||
|  | ||||
| extern cRecordings Recordings; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user