diff options
author | phintuka <phintuka> | 2007-01-06 04:02:25 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2007-01-06 04:02:25 +0000 |
commit | d5ec1eb7f3e3efd3bbda5994b906dfb4108722ae (patch) | |
tree | 6bb8ebf3158de182ba684a61f75580386bac726f | |
parent | 3299942e4b20cdad72916fb5a6ce1edcd6604fda (diff) | |
download | xineliboutput-d5ec1eb7f3e3efd3bbda5994b906dfb4108722ae.tar.gz xineliboutput-d5ec1eb7f3e3efd3bbda5994b906dfb4108722ae.tar.bz2 |
cTimePts moved to time_pts.[ch]
removed unused last_delay_time
-rw-r--r-- | tools/udp_pes_scheduler.h | 33 |
1 files changed, 4 insertions, 29 deletions
diff --git a/tools/udp_pes_scheduler.h b/tools/udp_pes_scheduler.h index 84913e6b..47422d4c 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.9 2007-01-01 09:44:42 phintuka Exp $ + * $Id: udp_pes_scheduler.h,v 1.10 2007-01-06 04:02:25 phintuka Exp $ * */ @@ -16,31 +16,8 @@ #include <vdr/tools.h> // uchar #include <vdr/thread.h> -//----------------------- cTimePts ------------------------------------------ - -class cTimePts -{ - private: - int64_t begin; /* Start time (PTS) */ - struct timeval tbegin; /* Start time (real time) */ - bool m_Paused; - int m_Multiplier; - bool m_Monotonic; - - public: - cTimePts(void); - - int64_t Now(void); - void Set(int64_t Pts = 0LL); - - void Pause(void); - void Resume(void); - void TrickSpeed(int Multiplier); -}; - -//----------------------- cUdpPesScheduler ---------------------------------- - #include "cxsocket.h" +#include "time_pts.h" #define MAX_UDP_HANDLES 16 @@ -110,10 +87,8 @@ class cUdpScheduler : public cThread // Scheduling - int64_t last_delay_time; - bool m_TrickSpeed; - - bool m_Master; /* if true, we are master metronom for playback */ + bool m_TrickSpeed; + bool m_Master; /* if true, we are master metronom for playback */ int calc_elapsed_vtime(int64_t pts, bool Audio); void Schedule(const uchar *Data, int Length); |