mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
message: Only allow setting valid seqnum on messages
If we want to make sure we never end up with invalid seqnum on messages let's forbid setting them.
This commit is contained in:
parent
14e849927d
commit
52d4ae7680
1 changed files with 1 additions and 0 deletions
|
@ -367,6 +367,7 @@ void
|
|||
gst_message_set_seqnum (GstMessage * message, guint32 seqnum)
|
||||
{
|
||||
g_return_if_fail (GST_IS_MESSAGE (message));
|
||||
g_return_if_fail (seqnum != GST_SEQNUM_INVALID);
|
||||
|
||||
GST_MESSAGE_SEQNUM (message) = seqnum;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue