parse-launch: fix typo in pad-list length comparision
authorStefan Kost <ensonic@users.sf.net>
Mon, 14 Feb 2011 13:37:23 +0000 (15:37 +0200)
committerStefan Kost <ensonic@users.sf.net>
Mon, 14 Feb 2011 13:37:23 +0000 (15:37 +0200)
It was comparing the length with itself.

Fixes #642071.

gst/parse/grammar.y

index f90d1cd..9065066 100644 (file)
@@ -582,7 +582,7 @@ gst_parse_perform_link (link_t *link, graph_t *graph)
       }
     }
   }
-  if (g_slist_length (link->src_pads) != g_slist_length (link->src_pads)) {
+  if (g_slist_length (link->src_pads) != g_slist_length (link->sink_pads)) {
     goto error;
   }
   while (srcs && sinks) {