mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
message: Application and element messages should not have NULL structures
It does not make sense for them.
This commit is contained in:
parent
4088363aea
commit
fe192fe399
1 changed files with 4 additions and 0 deletions
|
@ -779,6 +779,8 @@ gst_message_new_segment_done (GstObject * src, GstFormat format,
|
|||
GstMessage *
|
||||
gst_message_new_application (GstObject * src, GstStructure * structure)
|
||||
{
|
||||
g_return_val_if_fail (structure != NULL, NULL);
|
||||
|
||||
return gst_message_new_custom (GST_MESSAGE_APPLICATION, src, structure);
|
||||
}
|
||||
|
||||
|
@ -800,6 +802,8 @@ gst_message_new_application (GstObject * src, GstStructure * structure)
|
|||
GstMessage *
|
||||
gst_message_new_element (GstObject * src, GstStructure * structure)
|
||||
{
|
||||
g_return_val_if_fail (structure != NULL, NULL);
|
||||
|
||||
return gst_message_new_custom (GST_MESSAGE_ELEMENT, src, structure);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue