camerabin2: Fix potential loss of EOS event
authorRobert Swain <robert.swain@collabora.co.uk>
Thu, 29 Sep 2011 14:22:00 +0000 (16:22 +0200)
committerRobert Swain <robert.swain@collabora.co.uk>
Thu, 29 Sep 2011 14:22:00 +0000 (16:22 +0200)
commit6446cc4ae941775475d794928ebe5fe2b4c52600
tree8ca3413ad28a082cfb1fa1bb9338e5e089ef66b6
parentf4e744ff4921bef432b40128bdd0b33786e44732
camerabin2: Fix potential loss of EOS event

Setting the audio source to NULL just after pushing the EOS event
on it could potentially cause loss of said EOS event. Instead, we
can set the audio source to NULL when ready-for-capture is
signalled and the boolean value is true as this indicates we are
not currently capturing video.
gst/camerabin2/gstcamerabin2.c