kmsagnosticbin: Improve adition of new srcpads algorithm.

Change-Id: Iddc51816ffce68cd441e64e404b0da9f84964e2b