pad: optimize linking
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 2 Jun 2011 10:40:05 +0000 (12:40 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 2 Jun 2011 10:40:05 +0000 (12:40 +0200)
commit2b9c34cd70721f02afea77ff73165a9f11c516c9
treeb144d4d658440a20d9b4114dcd60094eb69d9596
parent50a8e0431ce23d3d4d04ade124af33b3ed4f5fd9
pad: optimize linking

Optimize linking by only releasing the pad locks when there are link functions
installed on the pads.
Add some G_LIKELY here and there.
Move error paths out of the main code flow.
gst/gstpad.c