pad: use correct variable in test
authorStefan Kost <ensonic@users.sf.net>
Tue, 21 Jul 2009 07:56:53 +0000 (10:56 +0300)
committerStefan Kost <ensonic@users.sf.net>
Thu, 6 Aug 2009 12:30:32 +0000 (15:30 +0300)
gst/gstpad.c

index af1c171..d4baf01 100644 (file)
@@ -3713,7 +3713,7 @@ gst_pad_load_and_link (xmlNodePtr self, GstObject * parent)
     goto cleanup;
 
   targetpad = gst_element_get_static_pad (target, split[1]);
-  if (!pad)
+  if (!targetpad)
     targetpad = gst_element_get_request_pad (target, split[1]);
 
   if (targetpad == NULL)