fpsdisplaysink: fix NULL ref and error handling if no video sink is found
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 19 Feb 2010 10:32:33 +0000 (10:32 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 19 Feb 2010 10:35:10 +0000 (10:35 +0000)
commit7c890c0b91c1aba9e512eed6cc43bc9a4c0370e3
treea6aa2bda35f74b579f0db09cd05d570fc7a456a2
parent20540ebdb48d355ce4b869cd9a542cbd023843c9
fpsdisplaysink: fix NULL ref and error handling if no video sink is found

If no video sink is set and autovideosink is not available for some
reason, post a proper error message on the bus when failing to
change state, and don't try to gst_object_ref() NULL pointers. Fixes
generic/states unit test when distchecking.
gst/debugutils/fpsdisplaysink.c