GNOME Bugzilla – Bug 622740
GstPad: Do not call gst_pad_accept_caps() when caps change
Last modified: 2010-07-16 13:31:41 UTC
Instead just check that the caps intersect with the pad template. The elements should properly accept/refuse the caps in setcaps(). Shaves off calling the default implementation of acceptcaps which does an expensive gst_pad_get_caps() (so if you have 50 of those elements in a row, you'd be doing factorial(50) gst_pad_get_caps...). Does break any module unit test and most apps work fine.
Created attachment 164631 [details] [review] GstPad: Do not call gst_pad_accept_caps() when caps change
I think we should wait with this until after the release, since it's just a performance improvement.
Just gave it some testing in buzztard. Everything works as expected so far.
Attachment 164631 [details] pushed as 7fa58db - GstPad: Do not call gst_pad_accept_caps() when caps change