winegstreamer: Manually assign union variables.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2016-02-16 06:42:54 +01:00 committed by Alexandre Julliard
parent 94fb7c3b8b
commit 4c8125601b
1 changed files with 5 additions and 3 deletions

View File

@ -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);