コード例 #1
0
void DoCloseSG(ComponentInstance seqGrab, SGChannel sgChannel, SGDataUPP dataProc)
{
	if(seqGrab) 
    {
		SGStop(seqGrab);
        SGSetDataProc(seqGrab, NULL ,NULL);
        if (dataProc)
        {
            DisposeSGDataUPP(dataProc);
        }

        SGDisposeChannel(seqGrab, sgChannel);
		CloseComponent(seqGrab);
	}
}
コード例 #2
0
 ~SGChannelHolder() { SGDisposeChannel(*itsOwner, it); }