mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 17:05:52 +00:00
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>
This commit is contained in:
parent
145d362129
commit
d0edc1ad6a
1 changed files with 2 additions and 1 deletions
|
@ -476,7 +476,8 @@ gst_socket_timestamp_message_deserialize (gint level,
|
||||||
{
|
{
|
||||||
GstSocketTimestampMessage *message;
|
GstSocketTimestampMessage *message;
|
||||||
|
|
||||||
if (level != SOL_SOCKET)
|
if (level != SOL_SOCKET
|
||||||
|
|| type != gst_socket_timestamp_message_get_msg_type (NULL))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (size < sizeof (struct timespec))
|
if (size < sizeof (struct timespec))
|
||||||
|
|
Loading…
Reference in a new issue