aggregator: Fix strcmp test for sink template
diff --git a/libs/gst/base/gstaggregator.c b/libs/gst/base/gstaggregator.c
index ae56672..6755395 100644
--- a/libs/gst/base/gstaggregator.c
+++ b/libs/gst/base/gstaggregator.c
@@ -1316,7 +1316,7 @@
   gchar *name = NULL;
 
   if (templ->direction != GST_PAD_SINK ||
-      g_strcmp0 (templ->name_template, "sink_%u"))
+      g_strcmp0 (templ->name_template, "sink_%u") != 0)
     goto not_sink;
 
   GST_OBJECT_LOCK (self);