/* IMemInputPin */ static HRESULT WINAPI SampleGrabber_IMemInputPin_ReceiveCanBlock(IMemInputPin *iface) { SG_Impl *This = impl_from_IMemInputPin(iface); TRACE("(%p)\n", This); return This->memOutput ? IMemInputPin_ReceiveCanBlock(This->memOutput) : S_OK; }
static void test_pin(IPin *pin) { IMemInputPin *mpin = NULL; IPin_QueryInterface(pin, &IID_IMemInputPin, (void **)&mpin); ok(mpin != NULL, "No IMemInputPin found!\n"); if (mpin) { ok(IMemInputPin_ReceiveCanBlock(mpin) == S_OK, "Receive can't block for pin!\n"); ok(IMemInputPin_NotifyAllocator(mpin, NULL, 0) == E_POINTER, "NotifyAllocator likes a NULL pointer argument\n"); IMemInputPin_Release(mpin); } /* TODO */ }