query: fix compiler warning
authorTim-Philipp Müller <tim@centricular.com>
Sun, 10 Apr 2016 10:42:18 +0000 (11:42 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 2 May 2016 09:53:04 +0000 (10:53 +0100)
C4146: unary minus operator applied to unsigned type, result still unsigned

gst/gstquery.c

index 63ad182..7093388 100644 (file)
@@ -390,7 +390,7 @@ gst_query_new_latency (void)
   structure = gst_structure_new_id (GST_QUARK (QUERY_LATENCY),
       GST_QUARK (LIVE), G_TYPE_BOOLEAN, FALSE,
       GST_QUARK (MIN_LATENCY), G_TYPE_UINT64, G_GUINT64_CONSTANT (0),
-      GST_QUARK (MAX_LATENCY), G_TYPE_UINT64, G_GUINT64_CONSTANT (-1), NULL);
+      GST_QUARK (MAX_LATENCY), G_TYPE_UINT64, GST_CLOCK_TIME_NONE, NULL);
 
   query = gst_query_new_custom (GST_QUERY_LATENCY, structure);