py: pyvid: Provide stream_off binding
authorKieran Bingham <kieran.bingham@ideasonboard.com>
Wed, 13 Dec 2017 23:10:10 +0000 (23:10 +0000)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 15 Dec 2017 13:34:17 +0000 (15:34 +0200)
The videodevice module defines a stream_off function call, but this is
not available in the python bindings interface.

Provide the binding of VideoStreamer::stream_off.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
py/pykms/pyvid.cpp

index 6a6080e4b2b7bb0be76ba1373d13a705a1e289be..92006c404038f2f5f058529da3ee45361ba55f5c 100644 (file)
@@ -34,5 +34,6 @@ void init_pyvid(py::module &m)
                        .def("queue", &VideoStreamer::queue)
                        .def("dequeue", &VideoStreamer::dequeue)
                        .def("stream_on", &VideoStreamer::stream_on)
+                       .def("stream_off", &VideoStreamer::stream_off)
                        ;
 }