Made the cPlayer member functions FramesPerSecond, GetIndex and GetReplayMode 'const'

This commit is contained in:
Klaus Schmidinger 2016-12-22 09:26:40 +01:00
parent d71544d797
commit 1135a1f9d5
3 changed files with 9 additions and 5 deletions

View File

@ -3325,6 +3325,8 @@ Thomas Reufer <thomas@reufer.ch>
for making the 'newplugin' script create the 'po' subdirectory for translations for making the 'newplugin' script create the 'po' subdirectory for translations
for suggesting to add a note to the description of cFont::Size(), regarding possible for suggesting to add a note to the description of cFont::Size(), regarding possible
differences between it and cFont::Height() differences between it and cFont::Height()
for making the cPlayer member functions FramesPerSecond, GetIndex and GetReplayMode
'const'
Eike Sauer <EikeSauer@t-online.de> Eike Sauer <EikeSauer@t-online.de>
for reporting a problem with channels that need more than 5 TS packets for detecting for reporting a problem with channels that need more than 5 TS packets for detecting

View File

@ -8828,7 +8828,7 @@ Video Disk Recorder Revision History
- Empty adaptation field TS packets are now skipped when recording (thanks to - Empty adaptation field TS packets are now skipped when recording (thanks to
Christopher Reimer, based on the "AFFcleaner" by Stefan Pöschel). Christopher Reimer, based on the "AFFcleaner" by Stefan Pöschel).
2016-12-13: Version 2.3.2 2016-12-22: Version 2.3.2
- Fixed a crash when deleting a recording (reported by Oliver Endriss). - Fixed a crash when deleting a recording (reported by Oliver Endriss).
- Fixed an overflow of PIDs in a receiver (thanks to Robert Hannebauer). - Fixed an overflow of PIDs in a receiver (thanks to Robert Hannebauer).
@ -8853,3 +8853,5 @@ Video Disk Recorder Revision History
operations. operations.
- Added a note to the description of cFont::Size(), regarding possible differences - Added a note to the description of cFont::Size(), regarding possible differences
between it and cFont::Height() (suggested to Thomas Reufer). between it and cFont::Height() (suggested to Thomas Reufer).
- Made the cPlayer member functions FramesPerSecond, GetIndex and GetReplayMode
'const' (thanks to Thomas Reufer).

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: player.h 3.1 2013/12/25 13:25:02 kls Exp $ * $Id: player.h 4.1 2016/12/22 09:22:27 kls Exp $
*/ */
#ifndef __PLAYER_H #ifndef __PLAYER_H
@ -98,9 +98,9 @@ public:
///< skins as a last resort, in case they want to display the state of the ///< skins as a last resort, in case they want to display the state of the
///< current player. The return value is expected to be a short, single line ///< current player. The return value is expected to be a short, single line
///< string. The default implementation returns an empty string. ///< string. The default implementation returns an empty string.
double FramesPerSecond(void) { return player->FramesPerSecond(); } double FramesPerSecond(void) const { return player->FramesPerSecond(); }
bool GetIndex(int &Current, int &Total, bool SnapToIFrame = false) { return player->GetIndex(Current, Total, SnapToIFrame); } bool GetIndex(int &Current, int &Total, bool SnapToIFrame = false) const { return player->GetIndex(Current, Total, SnapToIFrame); }
bool GetReplayMode(bool &Play, bool &Forward, int &Speed) { return player->GetReplayMode(Play, Forward, Speed); } bool GetReplayMode(bool &Play, bool &Forward, int &Speed) const { return player->GetReplayMode(Play, Forward, Speed); }
static void Launch(cControl *Control); static void Launch(cControl *Control);
static void Attach(void); static void Attach(void);
static void Shutdown(void); static void Shutdown(void);