[PATCH] Revert "winegstreamer: Check for failure from gst_video_info_set_format()."

Zebediah Figura z.figura12 at gmail.com
Sat Aug 1 14:17:35 CDT 2020


This reverts commit ddd43e0a80bfd4c2e6f3ec650ed4b7d37890c46d.

This function returns void before 1.12.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49647
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/winegstreamer/gstdemux.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index fe5fe0e60df..e8f65a0e6ed 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -413,11 +413,7 @@ static GstCaps *amt_to_gst_caps_video(const AM_MEDIA_TYPE *mt)
         return NULL;
     }
 
-    if (!gst_video_info_set_format(&info, format, vih->bmiHeader.biWidth, vih->bmiHeader.biHeight))
-    {
-        ERR("Failed to set format.\n");
-        return NULL;
-    }
+    gst_video_info_set_format(&info, format, vih->bmiHeader.biWidth, vih->bmiHeader.biHeight);
     if ((caps = gst_video_info_to_caps(&info)))
     {
         /* Clear some fields that shouldn't prevent us from connecting. */
-- 
2.27.0




More information about the wine-devel mailing list