summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorArun Raghavan <arun@accosted.net>2014-07-01 12:18:19 +0530
committerArun Raghavan <arun@accosted.net>2014-07-03 23:08:22 +0530
commit357298c84f3c523a8c6b21c4b0d6a730d4f2518c (patch)
tree6bb7776541f233fad1a655ac3f06479ef1ec693c /ext
parent0b6eae66dfea18b64455c9fa1d3b76103b890058 (diff)
downloadgstreamer-plugins-bad-357298c84f3c523a8c6b21c4b0d6a730d4f2518c.tar.gz
openni2src: Close device when stopping the stream
https://bugzilla.gnome.org/show_bug.cgi?id=732535
Diffstat (limited to 'ext')
-rw-r--r--ext/openni2/gstopenni2src.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/openni2/gstopenni2src.cpp b/ext/openni2/gstopenni2src.cpp
index d9b08434a..ad7c33ad3 100644
--- a/ext/openni2/gstopenni2src.cpp
+++ b/ext/openni2/gstopenni2src.cpp
@@ -306,6 +306,8 @@ gst_openni2_src_stop (GstBaseSrc * bsrc)
if (src->color.isValid ())
src->color.stop ();
+ src->device->close ();
+
return TRUE;
}