summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2016-01-16 16:01:38 +0000
committerTim-Philipp Müller <tim@centricular.com>2016-01-16 16:01:38 +0000
commitdfb782ca978da7715f18334863b044409b91e0d9 (patch)
treebe322751a0ae0c0e4160839607408bed6c1fa490
parent8b88fc487f199bd3a7d5e10dc5bb904454c1d67e (diff)
message: add function guard to gst_message_set_buffering_stats()
https://bugzilla.gnome.org/show_bug.cgi?id=760704
-rw-r--r--gst/gstmessage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/gstmessage.c b/gst/gstmessage.c
index 5e530b7e5..066635d44 100644
--- a/gst/gstmessage.c
+++ b/gst/gstmessage.c
@@ -1060,6 +1060,7 @@ void
gst_message_set_buffering_stats (GstMessage * message, GstBufferingMode mode,
gint avg_in, gint avg_out, gint64 buffering_left)
{
+ g_return_if_fail (GST_IS_MESSAGE (message));
g_return_if_fail (GST_MESSAGE_TYPE (message) == GST_MESSAGE_BUFFERING);
gst_structure_id_set (GST_MESSAGE_STRUCTURE (message),