diff options
author | phintuka <phintuka> | 2010-02-03 11:44:05 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2010-02-03 11:44:05 +0000 |
commit | 9b75289fb191d9bc6076ed2dfc2b4bdb2fc9a525 (patch) | |
tree | 938cc837a10c6a02b077535efad7d0820a81711c | |
parent | 425c0a91bd8e79270ec7ef0e662f7c43b7a404ad (diff) | |
download | xineliboutput-9b75289fb191d9bc6076ed2dfc2b4bdb2fc9a525.tar.gz xineliboutput-9b75289fb191d9bc6076ed2dfc2b4bdb2fc9a525.tar.bz2 |
m_TrickSpeedPts, m_TrickSpeedDelay and PlayTrickSpeed() not used with vdr-1.7.5+
-rw-r--r-- | device.c | 21 | ||||
-rw-r--r-- | device.h | 6 |
2 files changed, 17 insertions, 10 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: device.c,v 1.92 2010-02-03 00:13:10 phintuka Exp $ + * $Id: device.c,v 1.93 2010-02-03 11:44:05 phintuka Exp $ * */ @@ -202,9 +202,11 @@ cXinelibDevice::cXinelibDevice() m_liveMode = true; m_TrickSpeed = -1; - m_TrickSpeedPts = 0; m_TrickSpeedMode = 0; +#if VDRVERSNUM < 10705 + m_TrickSpeedPts = 0; m_TrickSpeedDelay = 0; +#endif m_SkipAudio = false; m_PlayingFile = pmNone; m_StreamStart = true; @@ -681,9 +683,11 @@ void cXinelibDevice::TrickSpeed(int Speed) int RealSpeed = abs(Speed); LOGTRICKSPEED("TrickSpeed changed from %d to %d [%d]", m_TrickSpeed, Speed, RealSpeed); - m_TrickSpeedPts = 0; m_TrickSpeed = Speed; +#if VDRVERSNUM < 10705 + m_TrickSpeedPts = 0; m_TrickSpeedDelay = 0; +#endif // Possible transitions: // fast <-> play @@ -905,9 +909,7 @@ bool cXinelibDevice::PlayFile(const char *FileName, int Position, int cXinelibDevice::PlayTrickSpeed(const uchar *buf, int length) { -#if VDRVERSNUM >= 10705 - return 0; -#endif +#if VDRVERSNUM < 10705 if(abs(m_TrickSpeed) > 1 && (m_TrickSpeedMode & trs_I_frames)) { uint8_t PictureType = pes_get_picture_type(buf, length); #ifdef LOG_TRICKSPEED @@ -1018,6 +1020,8 @@ int cXinelibDevice::PlayTrickSpeed(const uchar *buf, int length) } #endif +#endif /* VDRVERSNUM < 10705 */ + return 0; } @@ -1361,8 +1365,7 @@ void cXinelibDevice::StillPicture(const uchar *Data, int Length) TsBufferFlush(); - ForEach(m_clients, &cXinelibThread::Flush, 60, - &mand<bool>, true); + ForEach(m_clients, &cXinelibThread::Flush, 60, &mand<bool>, true); m_TrickSpeed = 0; m_SkipAudio = 0; @@ -1406,12 +1409,14 @@ bool cXinelibDevice::Poll(cPoller &Poller, int TimeoutMs) return true; } +#if VDRVERSNUM < 10705 if(m_TrickSpeed > 1 && m_TrickSpeedDelay > 20) { LOGTRICKSPEED(" Poll: m_TrickSpeedDelay=%d.", m_TrickSpeedDelay); cCondWait::SleepMs(20); m_TrickSpeedDelay -= 20; return false; } +#endif if(m_FreeBufs < 1) { int result = DEFAULT_POLL_SIZE; @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: device.h,v 1.51 2010-02-03 00:13:10 phintuka Exp $ + * $Id: device.h,v 1.52 2010-02-03 11:44:05 phintuka Exp $ * */ @@ -93,9 +93,11 @@ class cXinelibDevice : public cDevice private: ePlayMode m_PlayMode; int m_TrickSpeed; - int64_t m_TrickSpeedPts; int m_TrickSpeedMode; +#if VDRVERSNUM < 10705 + int64_t m_TrickSpeedPts; int m_TrickSpeedDelay; +#endif public: virtual bool SetPlayMode(ePlayMode PlayMode); |