How is the underlined gerund phrase used in the sentence?

They heard the poodle's barking from the yard.
----------------------------------------------
A.predicate nominative

B.object of a preposition

C.direct object

D.subject