comparison vixm/player.py @ 51:8396cc3816ee pure tip

On shutdown, make sure we tell the dbus clients that we're done
author Josef "Jeff" Sipek <jeffpc@josefsipek.net>
date Mon, 06 Nov 2006 06:16:19 -0500
parents 2d570448aba5
children
comparison
equal deleted inserted replaced
50:616700d020ba 51:8396cc3816ee
20 20
21 self.stats = stats.statsengine(os.path.join(os.environ['HOME'], ".vixm/stats")) 21 self.stats = stats.statsengine(os.path.join(os.environ['HOME'], ".vixm/stats"))
22 22
23 self.rb = rb_dbus.RhythmboxDbusThread(self) 23 self.rb = rb_dbus.RhythmboxDbusThread(self)
24 self.rb.start() 24 self.rb.start()
25 25
26 def play_next(self, lists): 26 def play_next(self, lists):
27 try: 27 try:
28 # pop song off the PRIO queue 28 # pop song off the PRIO queue
29 s = lists[playlist.LIST_PRIO].pop() 29 s = lists[playlist.LIST_PRIO].pop()
30 except IndexError: 30 except IndexError:
72 self.playing = False 72 self.playing = False
73 else: 73 else:
74 # nothing to play, just sleep 74 # nothing to play, just sleep
75 time.sleep(0.5) 75 time.sleep(0.5)
76 76
77 self.rb.notify_stop()