diff --git a/actfw_jetson/camera.py b/actfw_jetson/camera.py index f5afdbe..ce9c50d 100644 --- a/actfw_jetson/camera.py +++ b/actfw_jetson/camera.py @@ -69,14 +69,12 @@ def __init__(self, size, fps, logger=DEFAULT_LOGGER): # subscribe to signal appsink.connect("new-sample", _appsink_on_new_sample, self) - self._pipeline.set_state(self._Gst.State.PLAYING) - self._glib_loop = GObject.MainLoop() threading.Thread(target=self._glib_loop.run).start() def run(self): # _appsink_on_new_sample produces frames - pass + self._pipeline.set_state(self._Gst.State.PLAYING) def stop(self): self._pipeline.set_state(self._Gst.State.NULL)