summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--dxr3device.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/HISTORY b/HISTORY
index 5be81b0..c8992e0 100644
--- a/HISTORY
+++ b/HISTORY
@@ -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);
}