projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4088363
)
message: Application and element messages should not have NULL structures
author
Sebastian Dröge
<sebastian@centricular.com>
Thu, 26 Jun 2014 17:02:06 +0000
(19:02 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Thu, 26 Jun 2014 17:02:06 +0000
(19:02 +0200)
It does not make sense for them.
gst/gstmessage.c
patch
|
blob
|
history
diff --git
a/gst/gstmessage.c
b/gst/gstmessage.c
index 15c53287ffa2acb24fe0da0270234c8532e33670..5555fb23709d919573348167bb9988dea34e27e9 100644
(file)
--- a/
gst/gstmessage.c
+++ b/
gst/gstmessage.c
@@
-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);
}