From 035ff73ab32e5dce18bfec8976a3a87505b00f71 Mon Sep 17 00:00:00 2001 From: yamp Date: Thu, 30 Jun 2005 08:08:21 +0000 Subject: [PATCH] no message --- mediaportal/TVCapture/DVBGraphBDA.cs | 44 ++++++++++++++++------------ 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/mediaportal/TVCapture/DVBGraphBDA.cs b/mediaportal/TVCapture/DVBGraphBDA.cs index 26fa107f544..0436d8d321e 100644 --- a/mediaportal/TVCapture/DVBGraphBDA.cs +++ b/mediaportal/TVCapture/DVBGraphBDA.cs @@ -161,7 +161,9 @@ enum State protected bool m_pluginsEnabled=false; DateTime timeResendPid=DateTime.Now; + DateTime updateTimer=DateTime.Now; DVBDemuxer m_streamDemuxer = new DVBDemuxer(); + int m_iVideoWidth=1; int m_iVideoHeight=1; @@ -2662,31 +2664,37 @@ void CheckVideoResolutionChanges() public void Process() { if (m_SectionsTables==null) return; - if(!GUIGraphicsContext.Vmr9Active && !g_Player.Playing) - { - CheckVideoResolutionChanges(); - } - if(!GUIGraphicsContext.Vmr9Active && Vmr7!=null && m_graphState==State.Viewing) - { - Vmr7.Process(); - } - if(GUIGraphicsContext.Vmr9Active && Vmr9!=null) + + TimeSpan ts=DateTime.Now-updateTimer; + if (ts.TotalMilliseconds>800) { - Vmr9.Process(); - if (GUIGraphicsContext.Vmr9FPS < 1f) + if(!GUIGraphicsContext.Vmr9Active && !g_Player.Playing) + { + CheckVideoResolutionChanges(); + } + if(!GUIGraphicsContext.Vmr9Active && Vmr7!=null && m_graphState==State.Viewing) + { + Vmr7.Process(); + } + if(GUIGraphicsContext.Vmr9Active && Vmr9!=null) { - Vmr9.Repaint();// repaint vmr9 - TimeSpan ts = DateTime.Now-timeResendPid; - if (ts.TotalSeconds>5) + Vmr9.Process(); + if (GUIGraphicsContext.Vmr9FPS < 1f) { - refreshPmtTable=true; - timeResendPid=DateTime.Now; + Vmr9.Repaint();// repaint vmr9 + ts = DateTime.Now-timeResendPid; + if (ts.TotalSeconds>5) + { + refreshPmtTable=true; + timeResendPid=DateTime.Now; + } } + else timeResendPid=DateTime.Now; } else timeResendPid=DateTime.Now; + updateTimer=DateTime.Now; } - else timeResendPid=DateTime.Now; - + if (!refreshPmtTable) return; try