Merge commit 'origin/master' into tmbinc/FixTimingBugs
[vuplus_dvbapp] / lib / python / Components / Sources / RdsDecoder.py
index 886f81f..26a3e5a 100644 (file)
@@ -23,7 +23,11 @@ class RdsDecoder(PerServiceBase, Source, object):
        decoder = property(getDecoder)
 
        def gotEvent(self, what):
-               if what in [iPlayableService.evStart, iPlayableService.evEnd]:
+               if what in (iPlayableService.evStart, iPlayableService.evEnd):
                        self.changed((self.CHANGED_CLEAR,))
                else:
                        self.changed((self.CHANGED_SPECIFIC, what))
+
+       def destroy(self):
+               PerServiceBase.destroy(self)
+               Source.destroy(self)