From 58cdfc9211425ed4539939db075e18f6081a56b2 Mon Sep 17 00:00:00 2001 From: noisymime Date: Fri, 28 Mar 2008 01:52:31 +0000 Subject: [PATCH] - Fixed channel changing spinner bug --- modules/myth_tv_player/myth_tv_player.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/myth_tv_player/myth_tv_player.py b/modules/myth_tv_player/myth_tv_player.py index 082e4dd..2ce5d9d 100644 --- a/modules/myth_tv_player/myth_tv_player.py +++ b/modules/myth_tv_player/myth_tv_player.py @@ -41,6 +41,7 @@ class Module: def begin(self, glossMgr): self.glossMgr = glossMgr #self.buffer_file_reader = open("test.mpg","r") + self.spinning = True glossMgr.get_selector_bar().set_spinner(True) self.loading_scr = SplashScr(self.stage) self.loading_scr.set_msg("Starting TV...") @@ -64,7 +65,10 @@ class Module: self.isRunning = True def begin_playback(self, fd):#buffer_file): - self.glossMgr.get_selector_bar().set_spinner(False) + if self.spinning: + self.glossMgr.get_selector_bar().set_spinner(False) + self.spinning = False + #uri = "file://" + os.getcwd() +"/" + buffer_file #f = open(os.getcwd() +"/" + buffer_file, 'r')