Skip to content

Commit

Permalink
Merge pull request #28 from Idein/close-22
Browse files Browse the repository at this point in the history
Close #22
  • Loading branch information
ishiy1993 authored Apr 21, 2022
2 parents dfb9b40 + 217b446 commit a070864
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions actfw_jetson/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,12 @@ def __init__(self, size, fps, logger=DEFAULT_LOGGER):
# subscribe to <new-sample> 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)
Expand Down

0 comments on commit a070864

Please sign in to comment.