From: Tilman Sauerbeck Date: Sun, 26 Aug 2007 15:32:31 +0000 (+0200) Subject: Initialize a song's properties to an empty hash. X-Git-Url: http://git.code-monkey.de/?p=euphoria.git;a=commitdiff_plain;h=41c86551ae71ecf64f0ae40339fecda848a509de Initialize a song's properties to an empty hash. Seems sometimes we try to access the properties before we got them from the daemon. --- diff --git a/lib/playlist_item.rb b/lib/playlist_item.rb index 91b5bea..5b89ea4 100644 --- a/lib/playlist_item.rb +++ b/lib/playlist_item.rb @@ -13,7 +13,7 @@ class PlaylistItem @selected = false @hilighted = false - @props = nil + @props = {} @xmms.medialib_get_info(id).notifier do |res| self.properties = res.value