Sebastian Lackner : winegstreamer: Manually assign union variables.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 16 09:54:59 CST 2016


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

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Tue Feb 16 06:42:54 2016 +0100

winegstreamer: Manually assign union variables.

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winegstreamer/gst_cbs.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/dlls/winegstreamer/gst_cbs.c b/dlls/winegstreamer/gst_cbs.c
index c851798..96325d0 100644
--- a/dlls/winegstreamer/gst_cbs.c
+++ b/dlls/winegstreamer/gst_cbs.c
@@ -286,9 +286,11 @@ void Gstreamer_transform_pad_added_wrapper(GstElement *filter, GstPad *pad, gpoi
 
 gboolean query_sink_wrapper(GstPad *pad, GstObject *parent, GstQuery *query)
 {
-    struct cb_data cbdata = { QUERY_SINK,
-        { .query_sink_data = {pad, parent, query} }
-    };
+    struct cb_data cbdata = { QUERY_SINK };
+
+    cbdata.u.query_sink_data.pad = pad;
+    cbdata.u.query_sink_data.parent = parent;
+    cbdata.u.query_sink_data.query = query;
 
     call_cb(&cbdata);
 




More information about the wine-cvs mailing list