playsink: make playsink reusable
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 27 Apr 2012 14:13:27 +0000 (16:13 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 1 May 2012 10:19:11 +0000 (12:19 +0200)
commit7736044d45882059a5c47f29fda00bc72090ed4b
treedce96c52f4659036ff3b6fbe71b0d2d98aa757c1
parentf21b7437e7a642275fe62d630df0bf3d88c43c59
playsink: make playsink reusable

The sinkpads are unblocked when going from PAUSED->READY, we need to block them
again when going READY->PAUSED. The blocking of the pad previously only happened
when it was freshly obtained with _request_pad or when the caps changed. If we
don't release the pad when going to READY it was previously never blocked again
causing not-linked errors.
gst/playback/gstplaysink.c