mirror of
				https://github.com/vdr-projects/vdr.git
				synced 2025-03-01 10:50:46 +00:00 
			
		
		
		
	Added code from the "jumpplay" patch that makes the recording still be considered unviewed when stopping replay within RESUMEBACKUP seconds of the first mark
This commit is contained in:
		
							
								
								
									
										3
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								HISTORY
									
									
									
									
									
								
							| @@ -8465,4 +8465,5 @@ Video Disk Recorder Revision History | ||||
| - Updated the Lithuanian OSD texts (thanks to Valdemaras Pipiras). | ||||
| - Added SDNOTIFY to Make.config.template (suggested by Christian Richter). Also | ||||
|   added NO_KBD and BIDI. | ||||
|  | ||||
| - Added code from the "jumpplay" patch that makes the recording still be considered | ||||
|   unviewed when stopping replay within RESUMEBACKUP seconds of the first mark. | ||||
|   | ||||
| @@ -4,7 +4,7 @@ | ||||
|  * See the main source file 'vdr.c' for copyright information and | ||||
|  * how to reach the author. | ||||
|  * | ||||
|  * $Id: dvbplayer.c 3.3 2015/02/01 10:45:41 kls Exp $ | ||||
|  * $Id: dvbplayer.c 3.4 2015/02/02 09:51:32 kls Exp $ | ||||
|  */ | ||||
|  | ||||
| #include "dvbplayer.h" | ||||
| @@ -377,6 +377,8 @@ bool cDvbPlayer::Save(void) | ||||
|   if (index) { | ||||
|      int Index = ptsIndex.FindIndex(DeviceGetSTC()); | ||||
|      if (Index >= 0) { | ||||
|         if (Setup.SkipEdited && marks.First() && abs(Index - marks.First()->Position()) <= int(round(RESUMEBACKUP * framesPerSecond))) | ||||
|            Index = 0; // when stopping within RESUMEBACKUP seconds of the first mark the recording shall still be considered unviewed | ||||
|         Index -= int(round(RESUMEBACKUP * framesPerSecond)); | ||||
|         if (Index > 0) | ||||
|            Index = index->GetNextIFrame(Index, false); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user