From f05e669f2e8b208ae93d39168a0b63ea092b0b7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 16 Jan 2016 16:01:38 +0000 Subject: [PATCH] message: add function guard to gst_message_set_buffering_stats() https://bugzilla.gnome.org/show_bug.cgi?id=760704 --- gst/gstmessage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/gstmessage.c b/gst/gstmessage.c index 5e530b7e56..066635d448 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),