glvideomixer: swap control binding proxy
authorMatthew Waters <matthew@centricular.com>
Mon, 3 Aug 2015 09:48:16 +0000 (19:48 +1000)
committerMatthew Waters <matthew@centricular.com>
Mon, 3 Aug 2015 10:08:52 +0000 (20:08 +1000)
commit81a78449d5b408ad719e58e3ee818316169e6b7f
treef6cf9612038f9c4076d9279e304e239b1da3ad54
parentdb0a5ece027e7d0640be73a48b32ba256ace418e
glvideomixer: swap control binding proxy

The ref_object and object parameters were the wrong way around.

For the typical use case where an application is setting a
GstControlBinding on the returned ghost pad:
1. our control binding would be removed when the new one was set
2. sync_values calls were not being forwarded from the internal
   pad to the ghost pad.

If an application attempts to perform other control binding
operations (get_* family of functions) on the internal pad, they
will also be forwarded to the ghost pad where a possible
GstControlBinding will provide the necessary values.
ext/gl/gstglvideomixer.c