From 0c0c86a8c7c93e7edbca8a7840c945f4159c3059 Mon Sep 17 00:00:00 2001 From: Zhenbo Li Date: Tue, 7 Jun 2016 20:12:22 +0800 Subject: [PATCH] winegstreamer: Remove a condition which is always true. Signed-off-by: Zhenbo Li Signed-off-by: Andrew Eikum Signed-off-by: Alexandre Julliard --- dlls/winegstreamer/gstdemux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c index 92804e3e1e6..1de9b414172 100644 --- a/dlls/winegstreamer/gstdemux.c +++ b/dlls/winegstreamer/gstdemux.c @@ -1962,8 +1962,9 @@ static HRESULT WINAPI GSTInPin_ReceiveConnection(IPin *iface, IPin *pReceivePin, props.cbAlign = 1; props.cbPrefix = 0; - if (SUCCEEDED(hr) && IPin_QueryAccept(iface, pmt) != S_OK) + if (IPin_QueryAccept(iface, pmt) != S_OK) hr = VFW_E_TYPE_NOT_ACCEPTED; + if (SUCCEEDED(hr)) { IPin_QueryDirection(pReceivePin, &pindirReceive); if (pindirReceive != PINDIR_OUTPUT) {