Alistair Leslie-Hughes : winegstreamer: Remove redundant check.

Alexandre Julliard julliard at winehq.org
Wed Dec 6 17:18:16 CST 2017


Module: wine
Branch: master
Commit: 5f5f9974f555430bf7f9796c402bba1c2426d368
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5f5f9974f555430bf7f9796c402bba1c2426d368

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Tue Dec  5 00:15:01 2017 +0000

winegstreamer: Remove redundant check.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winegstreamer/gstdemux.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 3ef2324..95a1630 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -1158,10 +1158,7 @@ static HRESULT GST_Connect(GSTInPin *pPin, IPin *pConnectPin, ALLOCATOR_PROPERTI
     WaitForSingleObject(This->event, -1);
     gst_element_get_state(This->container, NULL, NULL, -1);
 
-    if (ret < 0) {
-        WARN("Ret: %i\n", ret);
-        hr = E_FAIL;
-    } else if (!This->cStreams) {
+    if (!This->cStreams) {
         FIXME("GStreamer could not find any streams\n");
         hr = E_FAIL;
     } else {




More information about the wine-cvs mailing list