fpsdisplaysink: Internal sink improvements
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Thu, 17 Dec 2009 14:04:28 +0000 (11:04 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Thu, 17 Dec 2009 23:39:24 +0000 (20:39 -0300)
commit87bfdef68379eafefc27b1c413942697f0bac8ee
tree50265d31ceb9b1d1217a0459b5e1338fec57e6ea
parenta4f30d5f3d511024c1aaf9f80209b40fb6e3a377
fpsdisplaysink: Internal sink improvements

Does some general improvements with the internal sink handling.
1) Do not remove and re-add the ghostpad when changing
internal sink
2) Only instantiate the default sink when changing from NULL
to READY if there is no other available
3) Avoid changing the internal sink if not on NULL state

Fixes #598682
gst/debugutils/fpsdisplaysink.c