pad: use correct variable in test

This commit is contained in:
Stefan Kost 2009-07-21 10:56:53 +03:00
parent e4ee7831e3
commit 12f9b39fac

View file

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