Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : apps/euphoria
Dir : e17/apps/euphoria/lib
Modified Files:
playlist.rb
Log Message:
more crash fixes
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- playlist.rb 25 Apr 2005 21:53:28 -0000 1.2
+++ playlist.rb 25 Apr 2005 21:57:07 -0000 1.3
@@ -1,4 +1,4 @@
-# $Id: playlist.rb,v 1.2 2005/04/25 21:53:28 tsauerbeck Exp $
+# $Id: playlist.rb,v 1.3 2005/04/25 21:57:07 tsauerbeck Exp $
require "euphoria/playlist_item"
@@ -10,7 +10,12 @@
@ee = nil
@eet = nil
@container = nil
- @current_pos = @xmms.playlist_current_pos.wait.value
+
+ begin
+ @current_pos = @xmms.playlist_current_pos.wait.value
+ rescue XmmsClient::ValueError
+ @current_pos = nil
+ end
@xmms.broadcast_playlist_current_pos.notifier do |res|
@current_pos = res.value
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs