wrappercamerabinsrc: Fix caps filter caps proxying
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Fri, 11 Jul 2014 14:40:42 +0000 (10:40 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Fri, 11 Jul 2014 15:05:08 +0000 (11:05 -0400)
commit362951b9ec7139da43b0a72b6b80c06a67d05b04
treec14780d8a16dcd93f43ba658f72654fcf740df36
parent193484798174ed012da634c0f3a4f8915c14ba2e
wrappercamerabinsrc: Fix caps filter caps proxying

The notify signal is triggered when caps is changed. But instead of
proxying the fixed caps, we query for the caps. Hence, when we go to
READY state, we endup setting template caps on the proxied caps
filter instead of NULL, which leads to negoitation failure. Correctly
proxy NULL caps if this is the new caps. Fixes not negotiated error
when running in cheese. Also fix a leak of caps string in one of the
trace.

https://bugzilla.gnome.org/show_bug.cgi?id=732741
gst/camerabin2/gstwrappercamerabinsrc.c