From e7e2ae529e69b064c8260f7d2e7766f82aa7a202 Mon Sep 17 00:00:00 2001 From: PM Kuipers Date: Mon, 23 Jan 2023 19:12:58 +0100 Subject: [PATCH] Bugfixes --- mediaserver/mediaserver.py | 1 + mediaserver/monitoredplayer.py | 3 ++- setup.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mediaserver/mediaserver.py b/mediaserver/mediaserver.py index 3fc0875..78d6f5c 100755 --- a/mediaserver/mediaserver.py +++ b/mediaserver/mediaserver.py @@ -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') diff --git a/mediaserver/monitoredplayer.py b/mediaserver/monitoredplayer.py index 2643844..b6dc2db 100755 --- a/mediaserver/monitoredplayer.py +++ b/mediaserver/monitoredplayer.py @@ -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 diff --git a/setup.py b/setup.py index 35a73e3..7a3509d 100755 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ if version < '2.2.3': if __name__ == '__main__': setup( name = 'mediaserver', - version = "4.1.1", + version = "4.1.2", description = 'Mediacore mediaserver', long_description = __doc__, author = 'Miqra Engineering',