openni2src: Fix deadlock when _get_caps() is called before READY
authorArun Raghavan <arun@accosted.net>
Tue, 1 Jul 2014 06:23:46 +0000 (11:53 +0530)
committerArun Raghavan <arun@accosted.net>
Thu, 3 Jul 2014 17:38:22 +0000 (23:08 +0530)
commitb6e07e77c20514dd8c9efdec48073e2ce8dd9f7d
tree34f02ac10c26daaf93aff73873925691411363e5
parent65bddd1e0cac9a21aa1d69ec03d1f9e2aed7bd57
openni2src: Fix deadlock when _get_caps() is called before READY

The object lock was not being dropped in the empty case. Restructured
the code a bit to make this sort of error less likely.

https://bugzilla.gnome.org/show_bug.cgi?id=732535
ext/openni2/gstopenni2src.cpp