gst: Initialize optional event/message fields when parsing
authorSebastian Dröge <sebastian@centricular.com>
Mon, 20 Sep 2021 10:12:12 +0000 (13:12 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 20 Sep 2021 10:12:12 +0000 (13:12 +0300)
commitfea7f02a1dc5a0a4efb1e324adf2368f0363f7da
tree4dfc5a3e88469cd9bc39a3a54f07cacb720f67cb
parent9289df42912a6fad32820835b90472bde3e8f60a
gst: Initialize optional event/message fields when parsing

These might not exist inside the structure and then we would potentially
keep around uninitialized memory from the caller in the out parameter.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/887>
gst/gstevent.c
gst/gstmessage.c