Bugfixes
This commit is contained in:
parent
0e4c15b084
commit
e7e2ae529e
|
@ -15,6 +15,7 @@ import gi
|
|||
from .resources import Resources
|
||||
|
||||
gi.require_version('Gst', '1.0')
|
||||
gi.require_version('Gdk', '3.0')
|
||||
gi.require_version('Gtk', '3.0')
|
||||
gi.require_version('GstGL', '1.0')
|
||||
gi.require_version('GstVideo', '1.0')
|
||||
|
|
|
@ -50,7 +50,8 @@ class MonitoredPlayer(BasicPlayer):
|
|||
self.looping=False
|
||||
|
||||
def __del__(self):
|
||||
self.monitor.stop()
|
||||
if hasattr(self,'monitor'):
|
||||
self.monitor.stop()
|
||||
|
||||
def playfor(self,duration,loop=False):
|
||||
loop = False
|
||||
|
|
Loading…
Reference in New Issue
Block a user