diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | dxr3device.c | 11 |
2 files changed, 12 insertions, 0 deletions
@@ -281,5 +281,6 @@ NOTE: I havent found time to include all of the languages, will be done in pre2 - assume SSE support implies MMXEXT support, this enables optimized memcpy routines on more systems (Ville Skyttä) - avoid hang in pause mode with VDR >= 1.3.18 (Luca Olivetti) +- avoid high CPU usage in pause mode (Luca Olivetti, Klaus Schmidinger) - fix compilation with -fPIC, kudos to ffmpeg (Ville Skyttä) - eliminate some compiler warnings (Ville Skyttä) diff --git a/dxr3device.c b/dxr3device.c index b42ed7f..d560496 100644 --- a/dxr3device.c +++ b/dxr3device.c @@ -276,6 +276,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); } |