aggregator: Fix strcmp test for sink template
authorNirbheek Chauhan <nirbheek@centricular.com>
Sun, 27 Mar 2016 13:36:50 +0000 (19:06 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 2 Dec 2017 15:10:26 +0000 (15:10 +0000)
libs/gst/base/gstaggregator.c

index ae56672..6755395 100644 (file)
@@ -1316,7 +1316,7 @@ gst_aggregator_default_create_new_pad (GstAggregator * self,
   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);