diff options
-rw-r--r-- | tools/udp_pes_scheduler.c | 12 | ||||
-rw-r--r-- | tools/udp_pes_scheduler.h | 5 |
2 files changed, 13 insertions, 4 deletions
diff --git a/tools/udp_pes_scheduler.c b/tools/udp_pes_scheduler.c index 519453bb..57b20a0b 100644 --- a/tools/udp_pes_scheduler.c +++ b/tools/udp_pes_scheduler.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: udp_pes_scheduler.c,v 1.33 2008-02-04 23:55:49 phintuka Exp $ + * $Id: udp_pes_scheduler.c,v 1.34 2008-04-28 20:53:07 phintuka Exp $ * */ @@ -382,7 +382,7 @@ void cUdpScheduler::Pause(bool On) m_TrickSpeed = false; } -void cUdpScheduler::TrickSpeed(int Multiplier) +void cUdpScheduler::TrickSpeed(const int Multiplier) { cMutexLock ml(&m_Lock); @@ -400,6 +400,14 @@ void cUdpScheduler::TrickSpeed(int Multiplier) m_TrickSpeed = (Multiplier==-1 || Multiplier==1) ? false : true; } +void cUdpScheduler::SetScrSpeed(const int Speed) +{ + cMutexLock ml(&m_Lock); + + MasterClock.SetScrSpeed(Speed); + RtpScr.SetScrSpeed(Speed); +} + bool cUdpScheduler::Queue(uint64_t StreamPos, const uchar *Data, int Length) { cMutexLock ml(&m_Lock); diff --git a/tools/udp_pes_scheduler.h b/tools/udp_pes_scheduler.h index 458aa009..fd24f57a 100644 --- a/tools/udp_pes_scheduler.h +++ b/tools/udp_pes_scheduler.h @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: udp_pes_scheduler.h,v 1.12 2007-03-29 12:45:43 phintuka Exp $ + * $Id: udp_pes_scheduler.h,v 1.13 2008-04-28 20:53:07 phintuka Exp $ * */ @@ -47,7 +47,8 @@ class cUdpScheduler : public cThread bool Flush(int TimeoutMs); void Pause(bool On); - void TrickSpeed(int Multiplier); + void TrickSpeed(const int Multiplier); + void SetScrSpeed(const int Speed = 90000); protected: |