pad: Rework pad blocking, another attempt
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 30 May 2011 16:29:06 +0000 (18:29 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 30 May 2011 16:29:06 +0000 (18:29 +0200)
commitfce85f75ff4990b7949e41d93a68efe23af02da6
treef2fbc99cabdca55bcacc6d984de53e9b28862498
parent565f492af235aa01e302e9d0cc3cea9db71a4c35
pad: Rework pad blocking, another attempt

Make the PadBlock callback take a GstBlockType parameter to handle the different
kind of stages in the pad block. This provides for more backwards compatibility
in the pad block API.
Separate blocking and unblocking into different methods, only blocking can do a
callback, unblock is always immediately. Also removed synchronous blocking, it
can always be implemented with a callback.
gst/gstpad.c
gst/gstpad.h
tests/check/generic/sinks.c
tests/check/gst/gstevent.c
tests/check/gst/gstghostpad.c
tests/check/gst/gstpad.c