Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : apps/euphoria
Dir : e17/apps/euphoria/bin Modified Files: euphoria Log Message: more crash fixes =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/euphoria/bin/euphoria,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- euphoria 25 Apr 2005 21:53:28 -0000 1.3 +++ euphoria 25 Apr 2005 21:57:06 -0000 1.4 @@ -1,6 +1,6 @@ #!/usr/bin/ruby -w -# $Id: euphoria,v 1.3 2005/04/25 21:53:28 tsauerbeck Exp $ +# $Id: euphoria,v 1.4 2005/04/25 21:57:06 tsauerbeck Exp $ require "ecore" require "ecore_x" @@ -278,7 +278,12 @@ =end def handle_current_pos(res) - ui_fill_track_info(@playlist[res.value]) + begin + pos = res.uint + rescue XmmsClient::ValueError + else + ui_fill_track_info(@playlist[pos]) + end end def ui_fill_track_info(item) ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs