Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 1493 of file pin.c.
{ IKsPinImpl * This; PKSISTREAM_POINTER Cur, Last; PKSISTREAM_POINTER Pointer = (PKSISTREAM_POINTER)CONTAINING_RECORD(StreamPointer, KSISTREAM_POINTER, StreamPointer); DPRINT("KsStreamPointerDelete %p\n", Pointer); DbgBreakPoint(); This = (IKsPinImpl*)CONTAINING_RECORD(Pointer->StreamPointer.Pin, IKsPinImpl, Pin); /* point to first stream pointer */ Last = NULL; Cur = This->ClonedStreamPointer; while(Cur != Pointer && Cur) { Last = Cur; /* iterate to next cloned pointer */ Cur = Cur->Next; } if (!Cur) { /* you naughty driver */ return; } if (!Last) { /* remove first cloned pointer */ This->ClonedStreamPointer = Pointer->Next; } else { Last->Next = Pointer->Next; } /* FIXME make sure no timeouts are pending */ FreeItem(Pointer); }