autoconvert: Use gst_pad_peer_accept_caps instead of gst_pad_set_caps.
authorJan Schmidt <thaytan@noraisin.net>
Fri, 16 Oct 2009 00:26:10 +0000 (01:26 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Fri, 16 Oct 2009 10:09:15 +0000 (11:09 +0100)
commit0fcf8001b16727cdd0e0a26f8ac5a76126a20d5d
tree61f23e9283169fde2fb764cddc2bf5f3a4e6e0f1
parent68621dfa561aa722d1439d0c0cddb2c511de1666
autoconvert: Use gst_pad_peer_accept_caps instead of gst_pad_set_caps.

gst_pad_set_caps on the internal source pad always succeeds, because
caps propagate to the peer with buffers, not immediately. Using
gst_pad_peer_accept_caps properly checks whether the actual
sub-element can accept caps when they change.

https://bugzilla.gnome.org/show_bug.cgi?id=575568
gst/autoconvert/gstautoconvert.c