openni2src: Close device when stopping the stream

https://bugzilla.gnome.org/show_bug.cgi?id=732535
This commit is contained in:
Arun Raghavan 2014-07-01 12:18:19 +05:30
parent 0b6eae66df
commit 357298c84f

View file

@ -306,6 +306,8 @@ gst_openni2_src_stop (GstBaseSrc * bsrc)
if (src->color.isValid ()) if (src->color.isValid ())
src->color.stop (); src->color.stop ();
src->device->close ();
return TRUE; return TRUE;
} }