[PATCH 1/3] winegstreamer: Fix return code in init_gst failure case.

Derek Lesho dlesho at codeweavers.com
Thu Sep 16 16:00:45 CDT 2021


Signed-off-by: Derek Lesho <dlesho at codeweavers.com>
---
 dlls/winegstreamer/quartz_parser.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/winegstreamer/quartz_parser.c b/dlls/winegstreamer/quartz_parser.c
index 5299f4dc2ed..a8e7e3d979f 100644
--- a/dlls/winegstreamer/quartz_parser.c
+++ b/dlls/winegstreamer/quartz_parser.c
@@ -982,7 +982,10 @@ static HRESULT parser_sink_connect(struct strmbase_sink *iface, IPin *peer, cons
         goto err;
 
     if (!filter->init_gst(filter))
+    {
+        hr = E_FAIL;
         goto err;
+    }
 
     for (i = 0; i < filter->source_count; ++i)
     {
-- 
2.33.0




More information about the wine-devel mailing list