summaryrefslogtreecommitdiff
path: root/dvbplayer.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2016-12-22 11:33:12 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2016-12-22 11:33:12 +0100
commitbe4cdcf17027e2f6f5482fb13d273693145d11a1 (patch)
treeaa3877153e4640746b6833dae1a0891928907065 /dvbplayer.h
parentfd85701a84c976318afbb69e13d96c1ec44112fc (diff)
downloadvdr-be4cdcf17027e2f6f5482fb13d273693145d11a1.tar.gz
vdr-be4cdcf17027e2f6f5482fb13d273693145d11a1.tar.bz2
Improved handling frame numbers to have a smoother progress display during replay of recordings with B-frames
Diffstat (limited to 'dvbplayer.h')
-rw-r--r--dvbplayer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/dvbplayer.h b/dvbplayer.h
index ef6f1fce..2fe6e4c9 100644
--- a/dvbplayer.h
+++ b/dvbplayer.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbplayer.h 4.1 2015/08/02 13:01:44 kls Exp $
+ * $Id: dvbplayer.h 4.2 2016/12/22 10:36:50 kls Exp $
*/
#ifndef __DVBPLAYER_H
@@ -50,6 +50,10 @@ public:
bool GetIndex(int &Current, int &Total, bool SnapToIFrame = false);
// Returns the current and total frame index, optionally snapped to the
// nearest I-frame.
+ bool GetFrameNumber(int &Current, int &Total);
+ // Returns the current and total frame number. In contrast to GetIndex(),
+ // this function respects the chronological order of frames, which is
+ // different from its index for streams containing B frames (e.g. H264)
bool GetReplayMode(bool &Play, bool &Forward, int &Speed);
// Returns the current replay mode (if applicable).
// 'Play' tells whether we are playing or pausing, 'Forward' tells whether