Author: duncan
Date: Fri Sep 22 08:13:43 2006
New Revision: 8223
Modified:
branches/rel-1-5/freevo/src/audio/plugins/radioplayer.py
Log:
[ 1563361 ] Makes the radio send start and stop events
Patch applied
Modified: branches/rel-1-5/freevo/src/audio/plugins/radioplayer.py
==============================================================================
--- branches/rel-1-5/freevo/src/audio/plugins/radioplayer.py (original)
+++ branches/rel-1-5/freevo/src/audio/plugins/radioplayer.py Fri Sep 22
08:13:43 2006
@@ -113,6 +113,8 @@
print 'Radio Player failed to find a mixer'
os.system('%s -qf %s' % (config.RADIO_CMD, self.item.station))
thread.start_new_thread(self.__update_thread, ())
+ rc.app(self)
+ rc.post_event(PLAY_START)
return None
@@ -130,6 +132,8 @@
else:
print 'Radio Player failed to find a mixer'
os.system('%s -qm' % config.RADIO_CMD)
+ rc.post_event(PLAY_END)
+ rc.app(None)
def is_playing(self):
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog