summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/time_pts.c8
-rw-r--r--tools/time_pts.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/tools/time_pts.c b/tools/time_pts.c
index 7bf410ce..81ee7c73 100644
--- a/tools/time_pts.c
+++ b/tools/time_pts.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: time_pts.c,v 1.3 2008-04-20 21:29:29 phintuka Exp $
+ * $Id: time_pts.c,v 1.4 2008-04-28 20:48:05 phintuka Exp $
*
*/
@@ -69,7 +69,7 @@ cTimePts::cTimePts(void)
Set();
}
-int64_t cTimePts::Now(void)
+int64_t cTimePts::Now(void) const
{
if(m_Paused)
return begin;
@@ -152,7 +152,7 @@ void cTimePts::Resume(void)
}
}
-void cTimePts::TrickSpeed(int Multiplier)
+void cTimePts::TrickSpeed(const int Multiplier)
{
Set(Now());
@@ -164,7 +164,7 @@ void cTimePts::TrickSpeed(int Multiplier)
LOGERR("cTimePts::SetSpeed: Multiplier=%d", Multiplier);
}
-void cTimePts::SetScrSpeed(int ScrSpeed)
+void cTimePts::SetScrSpeed(const int ScrSpeed)
{
Set(Now());
diff --git a/tools/time_pts.h b/tools/time_pts.h
index bf958190..fafc7199 100644
--- a/tools/time_pts.h
+++ b/tools/time_pts.h
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: time_pts.h,v 1.3 2008-04-20 21:29:29 phintuka Exp $
+ * $Id: time_pts.h,v 1.4 2008-04-28 20:48:05 phintuka Exp $
*
*/
@@ -30,14 +30,14 @@ class cTimePts
public:
cTimePts(void);
- int64_t Now(void);
+ int64_t Now(void) const;
void Set(int64_t Pts = 0LL);
void Pause(void);
void Resume(void);
- void TrickSpeed(int Multiplier);
+ void TrickSpeed(const int Multiplier);
- void SetScrSpeed(int ScrSpeed = 90000);
+ void SetScrSpeed(const int ScrSpeed = 90000);
};
#endif // __TIME_PTS_H