udpsrc: GstSocketTimestampMessage only for SCM_TIMESTAMPNS
authorDavid Svensson Fors <davidsf@axis.com>
Mon, 23 Jan 2023 11:01:00 +0000 (12:01 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 26 Jan 2023 01:40:43 +0000 (01:40 +0000)
commit304352ac178c6101db70288078d7f9fe981f908f
tree0b93baee477d70b401d90870d5af3125ce46d1db
parent0fefde5da46ccc925a76e24ff51696a6b4732c16
udpsrc: GstSocketTimestampMessage only for SCM_TIMESTAMPNS

Deserialize socket control messages as GstSocketTimestampMessage only
if (level, type) is (SOL_SOCKET, SCM_TIMESTAMPNS).

Without this patch, messages with types SCM_RIGHTS or SCM_CREDENTIALS
could be deserialized as GstSocketTimestampMessage instead of
GUnixFDMessage or GUnixCredentialsMessage from gio.

Fixes #1736

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3777>
subprojects/gst-plugins-good/gst/udp/gstudpsrc.c