that means the existing image kept as it is. My code which cause this problem...
void CAbsDiffFilter::Run()
{
for (i=0;i< m_nInputPinsCount;i++)
{
if (m_ip[i]->IsConnected() == FALSE)
{
NotConnected=true;
break;
}
}
if (NotConnected)
{
for (i=0;i
}
hr = CBaseFilter::Run(tStart);
return hr;
}
Modified code :...
void CAbsDiffFilter::Run()
{
hr = CBaseFilter::Run(tStart);
for (i=0;i< m_nInputPinsCount;i++)
{
if (m_ip[i]->IsConnected() == FALSE) // if input pins are not connected
//m_ip[i] are input pins...
{
NotConnected=true;
break;
}
}
if (NotConnected)
{
for (i=0;i
}
return hr;
}
No comments:
Post a Comment