summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-02-11 13:41:56 +0100
committerSebastian Dröge <sebastian@centricular.com>2015-02-11 17:53:04 +0200
commit4a5ce862a2a36bd0ec20fe63a1b92731bc2ae205 (patch)
tree9fbceef4ca77a7430dfa2fec9f7c35aed320448a /gst
parentee8d67ef2c1ef968eddc8e71d6ac5f83688c125b (diff)
Improve and fix LATENCY query handling
This now follows the design docs everywhere. https://bugzilla.gnome.org/show_bug.cgi?id=744106
Diffstat (limited to 'gst')
-rw-r--r--gst/gstquery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/gstquery.c b/gst/gstquery.c
index 38fc5c599..fa82ecade 100644
--- a/gst/gstquery.c
+++ b/gst/gstquery.c
@@ -413,6 +413,7 @@ gst_query_set_latency (GstQuery * query, gboolean live,
GstStructure *structure;
g_return_if_fail (GST_QUERY_TYPE (query) == GST_QUERY_LATENCY);
+ g_return_if_fail (GST_CLOCK_TIME_IS_VALID (min_latency));
structure = GST_QUERY_STRUCTURE (query);
gst_structure_id_set (structure,