summaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2018-02-01 16:08:15 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2018-02-01 16:08:15 +0100
commitc71c3115cca09935b4b6770311958cb7ac8ce9f4 (patch)
treee5d6fd1e556a9f6f744f2c9b322eba8c8734799b /player.h
parent5ae8d1a7a30139d714334ecbed81b936885f75ce (diff)
downloadvdr-c71c3115cca09935b4b6770311958cb7ac8ce9f4.tar.gz
vdr-c71c3115cca09935b4b6770311958cb7ac8ce9f4.tar.bz2
Fixed handling editing marks in the replay progress display, in case the marks are deleted via the Info/Edit menu of the currently played recording
Diffstat (limited to 'player.h')
-rw-r--r--player.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/player.h b/player.h
index 01b5f5c9..d67bf2a9 100644
--- a/player.h
+++ b/player.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: player.h 4.3 2017/11/26 14:29:12 kls Exp $
+ * $Id: player.h 4.4 2018/02/01 15:34:51 kls Exp $
*/
#ifndef __PLAYER_H
@@ -102,6 +102,11 @@ public:
///< 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
///< string. The default implementation returns an empty string.
+ virtual void ClearEditingMarks(void) {}
+ ///< Clears any editing marks this player might be showing.
+ ///< Deletion of the marks themselves is handled separately, calling
+ ///< this function merely tells the player to no longer display the
+ ///< marks, if it has any.
double FramesPerSecond(void) const { return player ? player->FramesPerSecond() : DEFAULTFRAMESPERSECOND; }
bool GetIndex(int &Current, int &Total, bool SnapToIFrame = false) const { return player ? player->GetIndex(Current, Total, SnapToIFrame) : false; }
bool GetFrameNumber(int &Current, int &Total) const { return player ? player->GetFrameNumber(Current, Total) : false; }