Original commit message from CVS: query sink pads before querying peers of source pads in default handler