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 adding support for HEVC-video and AC-4-audio
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>
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
(thanks to Helmut Binder).
2020-10-30:
2020-11-03:
- Fixed multiple recording entries in case a recording is started during the initial
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
* 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"
@ -2834,6 +2834,8 @@ cMenuRecording::cMenuRecording(const cRecording *Recording, bool WithButtons)
:cOsdMenu(tr("Recording info"))
{
SetMenuCategory(mcRecordingInfo);
if (cRecordings::GetRecordingsRead(recordingsStateKey)) // initializes recordingsStateKey, so we don't call Display() unnecessarily
recordingsStateKey.Remove();
recording = Recording;
originalFileName = recording->FileName();
withButtons = WithButtons;