1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed an unnecessary double call to Display() in cMenuRecording::RefreshRecording()

This commit is contained in:
Klaus Schmidinger 2020-11-03 22:12:38 +01:00
parent ebbc562aab
commit 0468b38ff3
3 changed files with 7 additions and 2 deletions

View File

@ -2442,6 +2442,7 @@ Christoph Haubrich <christoph1.haubrich@arcor.de>
for reporting a problem with data loss in case renaming a recording fails for reporting a problem with data loss in case renaming a recording fails
for adding support for HEVC-video and AC-4-audio for adding support for HEVC-video and AC-4-audio
for implementing anti-aliasing for cPixmap::DrawSlope() and cPixmap::DrawEllipse() for implementing anti-aliasing for cPixmap::DrawSlope() and cPixmap::DrawEllipse()
for reporting an unnecessary double call to Display() in cMenuRecording::RefreshRecording()
Pekka Mauno <pekka.mauno@iki.fi> Pekka Mauno <pekka.mauno@iki.fi>
for fixing cSchedule::GetFollowingEvent() in case there is currently no present for fixing cSchedule::GetFollowingEvent() in case there is currently no present

View File

@ -9536,7 +9536,9 @@ Video Disk Recorder Revision History
cDvbTuner::GetSignalStats() to avoid problems with drivers that don't do this cDvbTuner::GetSignalStats() to avoid problems with drivers that don't do this
(thanks to Helmut Binder). (thanks to Helmut Binder).
2020-10-30: 2020-11-03:
- Fixed multiple recording entries in case a recording is started during the initial - Fixed multiple recording entries in case a recording is started during the initial
reading of the video directory (reported by Claus Muus). reading of the video directory (reported by Claus Muus).
- Fixed an unnecessary double call to Display() in cMenuRecording::RefreshRecording()
(reported by Christoph Haubrich).

4
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 4.85 2020/09/16 13:48:33 kls Exp $ * $Id: menu.c 4.86 2020/11/03 22:12:38 kls Exp $
*/ */
#include "menu.h" #include "menu.h"
@ -2834,6 +2834,8 @@ cMenuRecording::cMenuRecording(const cRecording *Recording, bool WithButtons)
:cOsdMenu(tr("Recording info")) :cOsdMenu(tr("Recording info"))
{ {
SetMenuCategory(mcRecordingInfo); SetMenuCategory(mcRecordingInfo);
if (cRecordings::GetRecordingsRead(recordingsStateKey)) // initializes recordingsStateKey, so we don't call Display() unnecessarily
recordingsStateKey.Remove();
recording = Recording; recording = Recording;
originalFileName = recording->FileName(); originalFileName = recording->FileName();
withButtons = WithButtons; withButtons = WithButtons;