Fixed selecting the last replayed recording in the Recordings menu

This commit is contained in:
Klaus Schmidinger 2013-02-12 13:16:15 +01:00
parent 4aaaa97ade
commit 027ec5a63f
3 changed files with 10 additions and 2 deletions

View File

@ -2248,6 +2248,9 @@ Andr
1.7.32 no longer generates a mark at that point 1.7.32 no longer generates a mark at that point
for suggesting to automatically go into Pause mode if an editing mark is set during for suggesting to automatically go into Pause mode if an editing mark is set during
replay replay
fpr reporting a bug in selecting the last replayed recording in the Recordings menu
in case there are folders and plain recordings with names that differ only in
non-alphanumeric characters
Jürgen Schilling <juergen_schilling@web.de> Jürgen Schilling <juergen_schilling@web.de>
for reporting that color buttons were displayed in the recording info menu if it for reporting that color buttons were displayed in the recording info menu if it

View File

@ -7600,3 +7600,6 @@ Video Disk Recorder Revision History
- Updated the Italian OSD texts (thanks to Diego Pierotto). - Updated the Italian OSD texts (thanks to Diego Pierotto).
- Fixed using "Pause" and "Slow motion" near the end of a recording (replay stopped - Fixed using "Pause" and "Slow motion" near the end of a recording (replay stopped
a few seconds after the end of the recording file has been reached). a few seconds after the end of the recording file has been reached).
- Fixed selecting the last replayed recording in the Recordings menu in case there
are folders and plain recordings with names that differ only in non-alphanumeric
characters (reported by Andre Weidemann).

6
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menu.c 2.77 2013/02/11 11:08:54 kls Exp $ * $Id: menu.c 2.78 2013/02/12 13:10:53 kls Exp $
*/ */
#include "menu.h" #include "menu.h"
@ -2306,8 +2306,10 @@ void cMenuRecordings::Set(bool Refresh)
if (CurrentRecording && strcmp(CurrentRecording, recording->FileName()) == 0) if (CurrentRecording && strcmp(CurrentRecording, recording->FileName()) == 0)
SetCurrent(LastItem); SetCurrent(LastItem);
} }
if (LastDir) if (LastDir) {
LastDir->IncrementCounter(recording->IsNew()); LastDir->IncrementCounter(recording->IsNew());
LastItem = LastDir;
}
} }
} }
if (Refresh) if (Refresh)