Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
yamp committed Jun 30, 2005
1 parent 33a69c8 commit 035ff73
Showing 1 changed file with 26 additions and 18 deletions.
44 changes: 26 additions & 18 deletions mediaportal/TVCapture/DVBGraphBDA.cs
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 035ff73

Please sign in to comment.