Do a better jobb of cleaning up after gstreamer
This commit is contained in:
parent
613e3b86ba
commit
fd05a9ea9b
@ -123,6 +123,12 @@ class GStreamerPlaybackController(BasePlaybackController):
|
||||
return 0
|
||||
|
||||
def destroy(self):
|
||||
self.bin.set_state(gst.STATE_NULL)
|
||||
self.bus.remove_signal_watch()
|
||||
del self.bin
|
||||
bin, self.bin = self.bin, None
|
||||
bus, self.bus = self.bus, None
|
||||
|
||||
bus.remove_signal_watch()
|
||||
bin.get_state(-1)
|
||||
bin.set_state(gst.STATE_NULL)
|
||||
|
||||
del bus
|
||||
del bin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user