playsink: Reconfigure when pads are added later
authorEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 27 Jul 2011 11:05:31 +0000 (11:05 +0000)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 18 Aug 2011 11:42:26 +0000 (13:42 +0200)
commit2ee31ccac93ebaf9fc8706b1d07f54dba1ad7eef
tree7fdc8bf93d3852ea3718cb0897a163c4fc34778e
parent1dadc5eac13804847426a220978d1da87048a900
playsink: Reconfigure when pads are added later

Instead of just assuming all pads are created at the same time,
remember which ones are actually new (via ->pending_blocked_pads).

This allows the following use-case to properly work:
* Upstream starts with audio-only
* Only that pad gets data, blocks and a real audio sink is created
* Upstream laters adds a video stream
* A new pad is requested, blocks and reconfiguration kicks in in
  order to add a new real video sink
gst/playback/gstplaysink.c