diff --git a/subprojects/gst-plugins-good/gst/udp/gstudpsrc.c b/subprojects/gst-plugins-good/gst/udp/gstudpsrc.c index f957007468..172137ad8c 100644 --- a/subprojects/gst-plugins-good/gst/udp/gstudpsrc.c +++ b/subprojects/gst-plugins-good/gst/udp/gstudpsrc.c @@ -476,7 +476,8 @@ gst_socket_timestamp_message_deserialize (gint level, { GstSocketTimestampMessage *message; - if (level != SOL_SOCKET) + if (level != SOL_SOCKET + || type != gst_socket_timestamp_message_get_msg_type (NULL)) return NULL; if (size < sizeof (struct timespec))