examples: make camerabin test application handle errors when starting up
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 5 Dec 2009 18:16:47 +0000 (18:16 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 6 Jan 2010 01:56:40 +0000 (01:56 +0000)
commit31ab47e03b67ab81e9eab4979e8745aed218d37c
tree42a0ed6b1ea46833f5a4e4ef0034afcae402825e
parent7cb7c06b7c0fcdf84832a7acfea4caa44373b9d5
examples: make camerabin test application handle errors when starting up

Instead of hanging forever in a _get_state() in case an error occurs when
starting up camerabin, bail out and print an error message. Also remove
unnecessary _get_state() when shutting down the pipeline.
tests/examples/camerabin/gst-camera.c