diff options
| author | phintuka <phintuka> | 2008-04-28 20:48:05 +0000 |
|---|---|---|
| committer | phintuka <phintuka> | 2008-04-28 20:48:05 +0000 |
| commit | 4d45e27758cc9ec58f6581abcc2eda7ce8ea1bce (patch) | |
| tree | 51a25c2ae519419e1f45824493471ff13f196500 | |
| parent | fb7c2e0acc5082d910c0504514494c4658d29a01 (diff) | |
| download | xineliboutput-4d45e27758cc9ec58f6581abcc2eda7ce8ea1bce.tar.gz xineliboutput-4d45e27758cc9ec58f6581abcc2eda7ce8ea1bce.tar.bz2 | |
Make some functions/parameters const
| -rw-r--r-- | tools/time_pts.c | 8 | ||||
| -rw-r--r-- | tools/time_pts.h | 8 |
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 |
