コード例 #1
0
ファイル: CaptureVideo.cpp プロジェクト: layerfsd/PersonalIBA
BOOL CCaptureVideo::Stop()
{
	m_bOpened = false;

	if (m_pMC)
	{
		m_pMC->Stop();;
		m_pMC->Release();
		m_pMC = NULL;
	}

	if(m_pVW)
	{
		m_pVW->put_Visible(OAFALSE);
		m_pVW->put_Owner(NULL);
		m_pVW->Release();
		m_pVW = NULL;
	}

	srelease(m_pCapture);
//	srelease(m_pBF);
	m_pGrabber = NULL;
	srelease(m_pGB);

	return TRUE;
}
コード例 #2
0
ファイル: parser.c プロジェクト: hellsale/ptex
static void
emphas (void)
{
    srelease ("{\\em ");
    do
    {
        c = next ();
        if (c == '*') break;
        release (c);
    }
    while (c != EOF);
    if (c == '*') c = next ();
    release ('}');
}