pad: move caps check to central location
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 18 May 2011 16:53:35 +0000 (18:53 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 18 May 2011 16:53:35 +0000 (18:53 +0200)
commit500125ab4f43eded53e877b9f194624720f07b60
tree441499f9aa8d7714b8a6bfbc1a34487d24408eca
parent25989f3c8dc0a9318ad2787449fb418a0f82318e
pad: move caps check to central location

Make a function to call the eventfunc and perform a caps check when we are
dispatching a caps event.

This makes sure that all code paths correctly check that the caps are
acceptable before sending the caps to the eventfunction.
gst/gstpad.c