Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gstreamer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2016-01-16 19:01:38 +0300
committerTim-Philipp Müller <tim@centricular.com>2016-01-17 00:55:33 +0300
commitf05e669f2e8b208ae93d39168a0b63ea092b0b7a (patch)
treee6c34296a72372152da61b6f24c0ac1135e730f5
parent0263257783f02848b55b9eef2e5d46c4ee98b684 (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 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),