From 12f9b39fac116d21a19476b48ef978c271bdb075 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Tue, 21 Jul 2009 10:56:53 +0300 Subject: [PATCH] pad: use correct variable in test --- gst/gstpad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstpad.c b/gst/gstpad.c index af1c171355..d4baf01408 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -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)