diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | dxr3device.c | 11 |
2 files changed, 12 insertions, 0 deletions
@@ -247,3 +247,4 @@ NOTE: I havent found time to include all of the languages, will be done in pre2 - made "all" the default target in Makefile - assume SSE support implies MMXEXT support - avoid hang in pause mode with VDR >= 1.3.18 +- avoid high CPU usage in pause mode diff --git a/dxr3device.c b/dxr3device.c index 22be02f..965d2fb 100644 --- a/dxr3device.c +++ b/dxr3device.c @@ -275,6 +275,17 @@ void cDxr3Device::StillPicture(const uchar *Data, int Length) // ================================== bool cDxr3Device::Poll(cPoller &Poller, int TimeoutMs) { + if ((m_DemuxDevice.GetDemuxMode() == DXR3_DEMUX_TRICK_MODE && + m_DemuxDevice.GetTrickState() == DXR3_FREEZE) || + cDxr3Interface::Instance().IsExternalReleased()) + { +#if VDRVERSNUM >= 10314 + cCondWait::SleepMs(TimeoutMs); +#else + usleep(TimeoutMs * 1000); +#endif + return false; + } return m_DemuxDevice.Poll(TimeoutMs); // Poller.Poll(TimeoutMs); } |